import { unique } from "https://deno.land/x/ayonli_jsext@v0.9.72/array/index.ts";
Returns a subset of the array that contains only unique items.
Examples
Example 1
Example 1
import { unique } from "@ayonli/jsext/array";
const arr = [1, 2, 3, 4, 5, 2, 3, 4, 2];
console.log(unique(arr)); // [1, 2, 3, 4, 5]
Parameters
arr: T[]