array-uniq
- Version 3.0.0
- Published
- 2.91 kB
- No dependencies
- MIT license
Install
npm i array-uniq
yarn add array-uniq
pnpm add array-uniq
Overview
Create an array without duplicates
Index
Functions
Functions
function arrayUniq
arrayUniq: <ValueType>(array: readonly ValueType[]) => ValueType[];
Create an array without duplicates.
Parameter array
The array to remove duplicates from.
Example 1
import arrayUniq from 'array-uniq';arrayUniq([1, 1, 2, 3, 3]);//=> [1, 2, 3]arrayUniq(['foo', 'foo', 'bar', 'foo']);//=> ['foo', 'bar']
Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (3)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/array-uniq
.
- Markdown[](https://www.jsdocs.io/package/array-uniq)
- HTML<a href="https://www.jsdocs.io/package/array-uniq"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2417 ms. - Missing or incorrect documentation? Open an issue for this package.