Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 451 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 451 Bytes

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' ]