@iamphenomenal/tiny-magic

2.0.3 • Public • Published

tiny-magic

Remove duplicates from an Array.

Install

$ npm install @iamphenomenal/tiny-magic

Usage

const unique = require("@iamphenomenal/tiny-magic");

unique([1,1,2,3,3,4,5,5]]);
//=> [1,2,3,4,5]

unique(1337);
//=> Uncaught TypeError: unique wants an array!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1

Package Sidebar

Install

npm i @iamphenomenal/tiny-magic

Weekly Downloads

2

Version

2.0.3

License

MIT

Unpacked Size

1.84 kB

Total Files

4

Last publish

Collaborators

  • iamphenomenal