1.0.3 • Published 8 years ago
json-dupe-removal v1.0.3
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'}