A Better Way to Loop Over an Array
When you need to loop over an array in JavaScript do you default to the trusty for loop? Even got yourself a quick keyboard macro to create your for loop? You’re in good company, I do the same. Something like the following is my habitual goto when looping over an array…