Every line of 'backbone each' 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.
71 each: function each(callback) { 72 for (var key in storage$1) { 73 if (callback(this.get(key), key) === false) return; 74 } 75 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
170 jQuery.fn._each = function _each(callback, args) { 171 return jQuery._each(this, callback, args) 172 }
32 function each(collection, callback) { 33 var l = collection.length, 34 i = 0; 35 36 for (; i < l; i++) { 37 if ( callback.call(collection[i], collection[i], i, collection) === false ) { break; } 38 } 39 }
3 root.define("utilities.each", function each(array, callback) 4 { 5 if (Array.isArray(array)) for(var arrayCounter=0;arrayCounter<array.length;arrayCounter++) callback(array[arrayCounter], arrayCounter); 6 else if (array !== undefined) 7 { 8 var keys = Object.keys(array); 9 for(var keyCounter=0;keyCounter<keys.length;keyCounter++) 10 { 11 var key = keys[keyCounter]; 12 callback(array[key], key); 13 } 14 } 15 });
103 async each(iterator: (object: T) => Promise<any>): Promise<void> { 104 // Get objects 105 const objects = [...this._objects]; 106 107 for(let object of objects) { 108 await iterator(object); 109 } 110 111 return; 112 }