MCPcopy
hub / github.com/meteor/meteor / forEach

Method forEach

packages/id-map/id-map.js:44–56  ·  view source on GitHub ↗
(iterator)

Source from the content-addressed store, hash-verified

42
43 // Iterates over the items in the map. Return `false` to break the loop.
44 forEach(iterator) {
45 // don't use _.each, because we can't break out of it.
46 for (const [key, value] of this._map){
47 var breakIfFalse = iterator.call(
48 null,
49 value,
50 this._idParse(key)
51 );
52 if (breakIfFalse === false) {
53 return;
54 }
55 }
56 }
57
58 size() {
59 return this._map.size;

Callers 15

project-context.jsFile · 0.45
upgraders.jsFile · 0.45
runCommandsMethod · 0.45
project.jsFile · 0.45
argsMethod · 0.45
_exitedMethod · 0.45
runTestMethod · 0.45
endMethod · 0.45

Calls 1

callMethod · 0.45

Tested by

no test coverage detected