1.0.4 • Published 4 years ago
remove-duplicate v1.0.4
remove-duplicate
Returns array after removing duplicates.
Contributors ✨
Many thanks goes to these people for helping me maintain and upgrade the project:
Install
Install with npm:
$ npm install --save remove-duplicate
Usage
Works with Array
import removeDuplicate from 'remove-duplicate'; // web
OR;
const removeDuplicate = require('remove-duplicate'); // server
console.log(removeDuplicate([])); //=> []
console.log(removeDuplicate([1,1,1,1,1])); //=> [1]
console.log(removeDuplicate([1,2,3,4,5])); //=> [1,2,3,4,5]
About
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
License
Copyright © 2020, Abhishek Maurya. Released under the MIT License.