I need one help.I have an array which contains the json data.I need to check any given key is exist or not in that array using Javascript/Angular.js.I am explaining an array below.
var arr = [{
'category': 1,
'subcategory': 2,
'check': true
}, {
'category': 1,
'subcategory': 2
}];
You can check above for 1 index there is no check key.I need to check that key so that i can fetch check:true or check is not present at all.Please help me.
object.check ? object.check : '404: not found'