I have an array like
vendors = [{ Name: \'Magenic\', ID: \'ABC\' }, { Name: \'Microsoft\', ID: \'DEF\' } // and so on... ];
You cannot without looking into the object really.
You probably should change your structure a little, like
vendors = { Magenic: 'ABC', Microsoft: 'DEF' };
Then you can just use it like a lookup-hash.
vendors['Microsoft']; // 'DEF' vendors['Apple']; // undefined