uniquify()
Creates a new version of an array with all of the duplicate values removed.
This function is valid in
v2.1.0 to v2.24.3.
This function has been downloaded 62 times.
Parameter
{Array}
array
Array to copy and then modify to get rid of all duplicates from within the copy.
Returns
{Array}
A copy of array
with all of the duplicates removed.
Required Functions
This function directly requires the following functions which are included automatically:
-
is()
Tests to see if two or more values are exactly the same. This is similar to ===
but will also indicate that NaN
is NaN
and will indicate that -0
is not 0
.
-
slice()
Slice does not modify the original array, but instead returns a shallow copy of elements from the original array.