MCPcopy Index your code
hub / github.com/josdejong/mathjs / forEach

Method forEach

src/expression/node/ObjectNode.js:84–91  ·  view source on GitHub ↗

* Execute a callback for each of the child nodes of this node * @param {function(child: Node, path: string, parent: Node)} callback

(callback)

Source from the content-addressed store, hash-verified

82 * @param {function(child: Node, path: string, parent: Node)} callback
83 */
84 forEach (callback) {
85 for (const key in this.properties) {
86 if (hasOwnProperty(this.properties, key)) {
87 callback(
88 this.properties[key], 'properties[' + stringify(key) + ']', this)
89 }
90 }
91 }
92
93 /**
94 * Create a new ObjectNode whose children are the results of calling

Callers

nothing calls this directly

Calls 3

hasOwnPropertyFunction · 0.90
stringifyFunction · 0.90
callbackFunction · 0.50

Tested by

no test coverage detected