Skip to content

Simple NPM package to create an array without duplicated elements

Notifications You must be signed in to change notification settings

drbarzaga/uniques

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unique Values

Simple NPM package to remove duplicate items in array.

Installation

npm i unique-values
yarn add unique-values

Usage

var uniqueValues = require("unique-values")

console.log(uniqueValues([1,2,1,1,1,2,3,4,5,3,2,4,5,6]))

// Output -> [1, 2, 3, 4, 5, 6]