MCPcopy Create free account
hub / github.com/sequelize/sequelize-typescript / unique

Function unique

src/shared/array.ts:4–6  ·  view source on GitHub ↗
(arr: T[])

Source from the content-addressed store, hash-verified

2 * Removes duplicates from specified array
3 */
4export function unique<T>(arr: T[]): T[] {
5 return arr.filter(uniqueFilter);
6}
7
8/**
9 * Returns true for items, that only exists once on an array

Callers 1

array.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…