If I am missing something, you should use them, at least for readability, and not for the map. And for performance, you have to break every time you find what you are looking for, there is no reason to continue the cycle:
var hasFoo = false; $.each(myArray, function(i,obj) { if (obj.name === 'foo') { hasFoo = true; return false;} });
James montagne
source share