remove-duplicates-items
v1.0.3
Published
remove the duplicates in an array
Downloads
7
Maintainers
Readme
Installation
npm install remove-duplicates-items --save-dev
Import
.cjs file extension
const removeDuplicates = require('remove-duplicates-items');
Usage
const removeDuplicates = require('remove-duplicates-items');
const arrayWithDuplicates = ['abc', 'bca', 'abc', 'cba'];
console.log('Array without duplicates:', removeDuplicates(arrayWithDuplicates)); // [ 'abc', 'bca', 'cba' ]