Checks deeply if the given two arrays with different orders are equivalent.
It performs comparisons using isEql function.
It also supports comparing Sparse (opens in a new tab) arrays.
Related
Syntax
import { isEqlArr } from '@opentf/std';
isEqlArr(arr1: unknown[], arr2: unknown[]): Boolean;
Examples
isEqlArr([1, 3, 2], [2, 1, 3]) //=> true
isEqlArr([1, 3, 2], [2, 1, 5]) //=> false