@tempots/std
uniquePrimitives() function
Returns an array containing only the distinct primitive values from the input array.
Signature:
uniquePrimitives: extends Primitive>(values: T[]) => T[]
Parameters
Parameter |
Type |
Description |
---|---|---|
values |
T[] |
The input array. |
Returns: T[]
An array containing only the distinct primitive values from the input array.