UNPKG

remove-array-duplicates

Version:

Remove Duplicates from array

16 lines (8 loc) 575 B
# 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'];