UNIQUE

Returns the unique values within an array

Parameters

values Array (required) - The values to unique

callback function (optional) - A transform function to use when passing objects

Returns

Array

Examples

UNIQUE([1, 2, 3, 3, 1])

// returns [1,2,3]
UNIQUE(['blue', 'red', 'red', 'green', 'blue'])

// returns ["blue","red","green"]