v1.0.0
An ES (JavaScript & TypeScript) module to return unique array elements without any duplicated elements by ignore their reference points.
Attributes
Includes Deno configuration
Repository
Current version released
a year ago
Dependencies
std
Unique Array (Deno)
Releases | Latest () | Pre () |
---|---|---|
π Description
A Deno module to return unique array elements without any duplicated elements by ignore their reference points.
π Other Edition:
π Documentation
Getting Started
- Deno >= v1.34.0
import uniqueArray from "https://deno.land/x/unique_array/mod.ts";// Default Import
API
Function
uniqueArray<T>(item: T[]): T[];
Example
uniqueArray([{ foo: "bar" }, { foo: "bar" }, { bar: "gaz" }]);
//=> [{ foo: "bar" }, { bar: "gaz" }]