I have an array of objects:
[{\"value\":\"14\",\"label\":\"7\"},{\"value\":\"14\",\"label\":\"7\"},{\"value\":\"18\",\"label\":\"7\"}]
How I ca
Do you need to keep the duplicate object?
With underscoreJS
var oldarray = [{"value":"14","label":"7"},{"value":"14","label":"7"},{"value":"18","label":"7"}] var newarray = _.reject(oldarray, function(o) { return o == {"value":"14","label":"7"}; });