is reduce the best way to loop over array js code example Example: javascript best way to loop through array var len = arr.length; while (len--) { // blah blah }