Every line of 'queryselectorall foreach' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
110 function forEach(elements, callback) { 111 Array.prototype.forEach.call(elements, callback); 112 }
11 function forEach(array, callback, scope, splice) { 12 for (var all = [].concat(array), index = 0, length = all.length; index < length; ++index) { 13 if (splice) { 14 array.splice(index, 1); 15 } 16 17 callback.call(scope, all[index], index, array, scope); 18 } 19 }
79 function forEach(array, callback, scope) { 80 for (var i = 0; i < array.length; i++) { 81 callback.call(scope, i, array[i]); // passes back stuff we need 82 } 83 }