distinct-array
v1.0.1
Published
JavaScript Package for Creating an array without duplicates.
Downloads
3
Maintainers
Readme
distinct-array
JavaScript Package for Creating an array without duplicates.
Features
npm
Install
npm install --save distinct-array
Script Tag
For Development
<script src="https://rawgit.com/Prosen-Ghosh/distinct-array/master/distinct.js"></script>
For Production
<script src="https://cdn.rawgit.com/Prosen-Ghosh/distinct-array/14938117/distinct.js"></script>
Usage
var distinct = require('distinct-array');
distinct([1,1,1,8,2,2,2,3,5,4,])
//=> [ 1, 8, 2, 3, 5, 4 ]
distinct(["foo","bar","baz","baz","foo"]);
//=> [ 'foo', 'bar', 'baz' ]
distinct();
//=> []
Author
Prosen Ghosh [email protected]
License
- MIT