When I try to use _.findWhere
to search for an object with a value as an array, it always returns undefined.
var nameArray = [{name:'firstName',value : ['Amruta','Swapnil']},{name:'LastName',value : ['Pawar','shaikh']}]
var element = _.findWhere(nameArray,{value:'Amruta'});
console.log("element is " + element);
Instead of getting the actual value, I am receiving undefined as the output.