remove-duplicate

1.0.4 • Public • Published

remove-duplicate

Returns array after removing duplicates.

Contributors ✨

Many thanks goes to these people for helping me maintain and upgrade the project:

Abhishek Maurya

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

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

License

Copyright © 2020, Abhishek Maurya. Released under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i remove-duplicate

Weekly Downloads

3

Version

1.0.4

License

MIT

Unpacked Size

5.53 kB

Total Files

7

Last publish

Collaborators

  • xpressabhi