I have an array like
vendors = [{ Name: \'Magenic\', ID: \'ABC\' }, { Name: \'Microsoft\', ID: \'DEF\' } // and so on... ];
Correct me if i'm wrong.. i could have used forEach method like this,
forEach
var found=false; vendors.forEach(function(item){ if(item.name === "name"){ found=true; } });
Nowadays i'm used to it ,because of it simplicity and self explanatory word. Thank you.