UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

12 lines (9 loc) 247 B
import { uniq as uniq$1 } from '../../array/uniq.mjs'; import { isArrayLike } from '../predicate/isArrayLike.mjs'; function uniq(arr) { if (!isArrayLike(arr)) { return []; } return uniq$1(Array.from(arr)); } export { uniq };