Skip to content

RickyAndi/array-uniquify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#arrayUniquify

A simple function to remove duplicate element inside an array

  • example
var arrayUniquify = require('array-uniquify');

var duplicatedArray = [1,1,1,1,1,3,3,3,3,3,3,3,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5];
var uniqueArray = arrayUniquify(duplicatedArray);

console.log(uniqueArray) => [1,3,4,5]
```

- test

```
to run test, type 'npm test'
```

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published