json-dupe-removal
v1.0.3
Published
Removes all duplicates in a JSON file.
Downloads
3
Readme
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'}]