MCPcopy
hub / github.com/Semantic-Org/Semantic-UI / each

Function each

test/helpers/sinon.js:2386–2394  ·  view source on GitHub ↗
(collection, callback)

Source from the content-addressed store, hash-verified

2384
2385 sinon.extend(mock, (function () {
2386 function each(collection, callback) {
2387 if (!collection) {
2388 return;
2389 }
2390
2391 for (var i = 0, l = collection.length; i < l; i += 1) {
2392 callback(collection[i]);
2393 }
2394 }
2395
2396 return {
2397 create: function create(object) {

Callers 2

sinon.jsFile · 0.85
copyAttrsFunction · 0.85

Calls 2

getFakesFunction · 0.85
callbackFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…