Array.unique

Array.unique

Array.unique

Function

Returns the new array after deduplication in order of first occurrence.

Syntax

Parameters

None.

Return value

TypeDescription
ArrayThe new array after deduplication.

Code Example

Notes

  • The original array is not modified.
  • Objects and arrays are judged based on reference equality.