MCPcopy Index your code
hub / github.com/deployd/deployd / applyOnEach

Function applyOnEach

test-app/public/sinon.js:1834–1842  ·  view source on GitHub ↗
(fakes, method)

Source from the content-addressed store, hash-verified

1832 var reverse = arrayProto.reverse;
1833
1834 function applyOnEach(fakes, method) {
1835 var matchingFakes = filter(fakes, function(fake) {
1836 return typeof fake[method] === "function";
1837 });
1838
1839 forEach(matchingFakes, function(fake) {
1840 fake[method]();
1841 });
1842 }
1843
1844 function Sandbox() {
1845 var sandbox = this;

Callers 1

SandboxFunction · 0.85

Calls 2

filterFunction · 0.85
forEachFunction · 0.85

Tested by

no test coverage detected