🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

remove-duplicates-items

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remove-duplicates-items - npm Package Compare versions

Comparing version

to
1.0.2

2

package.json
{
"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' ]
```