Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/@tiptap/react.ts>removeDuplicates

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function removeDuplicates
import { removeDuplicates } from "https://deno.land/x/netzo@0.4.72/deps/@tiptap/react.ts";

Removes duplicated values within an array. Supports numbers, strings and objects.

Parameters

array: T[]
optional
by: { (
value: any,
replacer?: ((
this: any,
key: string,
value: any,
) => any) | undefined
,
space?: string | number | undefined,
): string; (
value: any,
replacer?: (string | number)[] | null | undefined,
space?: string | number | undefined,
): string; }