Returns array after removing duplicates.
Many thanks goes to these people for helping me maintain and upgrade the project:
Abhishek Maurya |
Install with npm:
$ npm install --save remove-duplicate
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]
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Running Tests
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
Copyright © 2020, Abhishek Maurya. Released under the MIT License.