export namespace ArrayHelper { export function AreEqual < T > ( array1 , array2 ) { const array1Length = array1 . length ; if ( array1Length !== array2 . length ) { return false ; } for ( let i = 0 ; i < array1Length ; i ++ ) { if ( ! array2 . includes ( array1 [ i ] ) ) { return false ; } } for ( let i = 0 ; i < array1Length ; i ++ ) { if ( ! array1 . includes ( array2 [ i ] ) ) { return false ; } } return true ; } export function ArrayFromLength ( length ) { return Array . from ( Array ( length ) , ( value , index ) => index ) ; } }