MCPcopy Index your code
hub / github.com/alibaba/lowcode-engine / forEach

Method forEach

packages/shell/src/model/node-children.ts:126–130  ·  view source on GitHub ↗

* 类似数组的 forEach * @param fn

(fn: (node: IPublicModelNode, index: number) => void)

Source from the content-addressed store, hash-verified

124 * @param fn
125 */
126 forEach(fn: (node: IPublicModelNode, index: number) => void): void {
127 this[nodeChildrenSymbol].forEach((item: InnerNode, index: number) => {
128 fn(ShellNode.create(item)!, index);
129 });
130 }
131
132 /**
133 * 类似数组的 reverse

Callers

nothing calls this directly

Calls 2

forEachMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected