UNPKG

json-dupe-removal

Version:
14 lines (8 loc) 330 B
# JSONDupeRemoval Removes all duplicates in a JSON file except one. ## Instructions //require json dupe remover var JSONDupeRemoval = require('json-dupe-removal'); var json = [{Name: 'Mathias'}, {Name: 'Sondre'}, {Name: 'Mathias'}]; ###### JSONDupeRemoval(json); // OUTPUT: [{Name: 'Mathias'}, {Name: 'Sondre'}]