I have array object(x) that stores json (key,value) objects. I need to make sure that x only takes json object with unique key. Below, example \'id\' is the key, so i don\'t
Create a very readable solution with lodash.
x = _.unionBy(x, [new Item(clickId, obj)], 'id');