Module

x/lodash_es/src/uniq.js>default

lodash for deno use
Latest
function default
import { default } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/src/uniq.js";

Creates a duplicate-free version of an array, using SameValueZero for equality comparisons, in which only the first occurrence of each element is kept. The order of result values is determined by the order they occur in the array.

Examples

_.uniq([2, 1, 2]); // => [2, 1]

Parameters

array

The array to inspect.