Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more

Unique Array (Deno)

License GitHub Repository GitHub Stars GitHub Contributors GitHub Issues GitHub Pull Requests GitHub Discussions CodeFactor Grade

Releases Latest (GitHub Latest Release Date) Pre (GitHub Latest Pre-Release Date)
Deno Land
GitHub GitHub Total Downloads GitHub Latest Release Version GitHub Latest Pre-Release Version

πŸ“ 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" }]