Creates a new version of an array with all of the duplicate values removed.

This function is valid in v2.1.0 to v2.12.0. This function has been downloaded 10 times.


{Array} array
Array to copy and then modify to get rid of all duplicates from within the copy.


A copy of array with all of the duplicates removed.

Required Functions

This function 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.