Test whether a value is an array with the same contents as this one.
OptionalequalsFn: (a: T, b: U) => booleanInsert value at index in the array.
Insert value into the array at the correct position according to
the ordering function cmp. The array must already be ordered
accordingly.
If duplicates is "low", the correct position in case of
duplicates is considered to be the index of the first occurrence of a
duplicate. If it is "high", which is the default, the correct
position is considered to be the index after the last occurrence of a
duplicate.
Optionalduplicates: "low" | "high"Return a copy of the array with any null or undefined values removed.
Return a copy of the array with any undefined values removed.
Added methods on Arrays.