I have an Array formtted like:
myArray = [{
"urlTag": "Google",
"urlTitle": "Users",
"status": 6,
"nested": {
"id": 2,
"title": "http:\/\/www.google.com",
}
},
{
"urlTag": "Bing",
"tabTitle": "BingUsers"
}]
I know the urlTag, and based on that, i need to get the title that is nested inside the nested array.
currently I have:
let myUrl = 'Google';
let myResult = _.result(_.find(myArray, {'urlTag': url}), nested.title);
I need myResult to be http:\/\/www.google.com but it's empty.
_.result(_.find(myArray, {'urlTag': url}), 'nested.title');