1.2.1 • Published 10 months ago

uniquify.js v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

uniquify.js

Lightweight package to parse and remove duplicate elements of a standard JavaScript array.

Installation

// Using NPM
npm install uniquify.js

// Using Yarn
yarn add uniquify.js

Usage

// Using Require
const { uniquify } = require('uniquify.js');

// Using Import
import { uniquify } from 'uniquify.js';

Example

let myNums = [1, 2, 3, 1, 4, 1, 2, 5, 3, 4];
let uniqueNums = uniquify(myNums);
console.log(uniqueNums); // -> [1, 2, 3, 4, 5]
1.2.1

10 months ago

1.2.0

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago