remove-array-duplicates

1.0.4 • Public • Published

Remove Duplicate Values from Array

A Node.js package that find the Duplicate Values from Array then Remove it and then Gives the New Array .

Usage

var duplicateArray = require('remove-array-duplicates');	       // Importing a module

var arr = ['pen','notebook','pencil','notebook','pencil'];		// Duplicate Values Array    

var result = duplicateArray(arr);                  	 	// Declare Variable To get Filtered Result

console.log(result);                				// Printing the Filtered Result

The Result Looks Like ['pen','notebook','pencil'];

Package Sidebar

Install

npm i remove-array-duplicates

Weekly Downloads

18

Version

1.0.4

License

ISC

Unpacked Size

1.63 kB

Total Files

4

Last publish

Collaborators

  • rajat980311