Skip to content

shrysjain/uniquify.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

uniquify.js

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

Installation

// Using NPM
npm install uni.js

// Using Yarn
yarn add uni.js

Usage

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

// Using Import
import { uniquify } from 'uni.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]

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published