Skip to main content

Function: filterToUniqueValues()

filterToUniqueValues(arr): (string | number)[]

Defined in: utils/utils.ts:520

take any input array containing all strings or all numbers and returns an array containing only the unique elements of that array in the order in which they were first observed

Parameters

arr

(string | number)[]

Returns

(string | number)[]