The arrUnique() method returns a new array with duplicate elements removed.
Uses the SameValueZero comparison (like strict equality ===, except that NaN is equal to NaN) and maintains
insertion order.
Like arrForEach an empty slot of a
sparse array (or a missing index of an array-like) is skipped, so it isn't included as undefined, eg.
arrUnique([1, , 3]) is [1, 3].
The arrUnique() method returns a new array with duplicate elements removed. Uses the SameValueZero comparison (like strict equality
===, except thatNaNis equal toNaN) and maintains insertion order.Like arrForEach an empty slot of a sparse array (or a missing index of an array-like) is skipped, so it isn't included as
undefined, eg.arrUnique([1, , 3])is[1, 3].