MCPcopy
hub / github.com/josdejong/mathjs / traverse

Method traverse

types/index.d.ts:4776–4776  ·  view source on GitHub ↗

* `traverse(callback)` * * Recursively traverse all nodes in a node tree. Executes given * callback for this node and each of its child nodes. Similar to * Array.forEach, except recursive. The callback function is a mapping * function accepting a node, and returning a replacement for

(
    callback: (node: MathNode, path: string, parent: MathNode) => void
  )

Source from the content-addressed store, hash-verified

4774 * ```
4775 */
4776 traverse(
4777 callback: (node: MathNode, path: string, parent: MathNode) => void
4778 ): void
4779}

Callers 7

ObjectNode.test.jsFile · 0.65
ArrayNode.test.jsFile · 0.65
BlockNode.test.jsFile · 0.65
testTypes.tsFile · 0.65

Implementers 1

Nodesrc/expression/node/Node.js

Calls

no outgoing calls

Tested by

no test coverage detected