Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

yields/uniq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uniq

Remove repeated elements of an Array

Installation

$ npm install uniq-component
$ component install yields/uniq

API

uniq(arr)

var uniq = require('uniq');
var arr = [1, 2, 3, 1, 2, 3, 1, 2, 3];
uniq(arr); // -> [1, 2, 3]

uniq(arr, select)

var uniq = require('uniq');
var arr = [1, 2, 3, 1, 2, 3, 1, 2, 3];
uniq(arr, [1, 3]); // // remove specific elements -> [1, 2, 3, 2, 2]

Tests

Download testing dependecies

npm install

Run tests

make test

License

MIT

About

array unique component

Resources

Stars

Watchers

Forks

Packages

No packages published