Appearance
function unique<const T>(arr: readonly T[]): readonly T[]
Returns an array with the unique values.
arr.unique([1, 1, 'john', 'john']) // [1, 'john'] arr.unique([42]) // [42]