export function equals < T > ( one , other , itemEquals = ( a , b ) => a === b ) { if ( one . length !== other . length ) { return false ; } for ( let i = 0 , len = one . length ; i < len ; i ++ ) { if ( ! itemEquals ( one [ i ] , other [ i ] ) ) { return false ; } } return true ; }