Returns a new array with all duplicate values removed, preserving only unique values.
This function only works with primitive types (string, number, boolean, null, undefined, symbol, bigint).
For deduplicating objects or arrays, use uniqueBy instead.
Returns a new array with all duplicate values removed, preserving only unique values.
This function only works with primitive types (string, number, boolean, null, undefined, symbol, bigint). For deduplicating objects or arrays, use
uniqueByinstead.