Vote count:
0
Is there an optimal way to compare a property value from two array of objects using lodash/underscorejs?
I have an array like this.
var a = [{'text':1}, {'text':2, 'misc':22}, {'text':3}];
var b = [{'text':1}, {'text':2}, {'text':3}];
comparing a and b should return true based on the property 'text'.
Have tried using _.isEqual and _.isMatch with not much help.
Here is the JSFIDDLE
asked 30 secs ago
Compare only one value from array of objects Javascript(No Sorting)
Aucun commentaire:
Enregistrer un commentaire