remove-duplicates-items
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "remove-duplicates-items", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "remove the duplicates in an array", | ||
@@ -5,0 +5,0 @@ "main": "index.cjs", |
@@ -1,1 +0,19 @@ | ||
# remove-duplicates | ||
## Installation | ||
```bash | ||
npm install remove-duplicates-items --save-dev | ||
``` | ||
## Import | ||
```bash | ||
.cjs file extension | ||
``` | ||
```javascript | ||
const removeDuplicates = require('remove-duplicates-items'); | ||
``` | ||
## Usage | ||
```javascript | ||
const removeDuplicates = require('remove-duplicates-items'); | ||
const arrayWithDuplicates = ['abc', 'bca', 'abc', 'cba']; | ||
console.log('Array without duplicates:', removeDuplicates(arrayWithDuplicates)); // [ 'abc', 'bca', 'cba' ] | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2390
19