function hasPermutation
hasPermutation<T, U = T>(): booleanExamine if array has a permutation.
Type Parameters
TU = TParameters
x: T[]an array
y: T[]search permutation
optional
fc: CompareFunction<T | U> | null = nullmap function (v, i, x)
optional
fm: MapFunction<T, T | U> | null = nullcompare function (a, b)
Return Type
x contains a shuffled version of y?