MCPcopy
hub / github.com/marktext/marktext / forEach

Method forEach

packages/muya/src/block/base/parent.ts:154–156  ·  view source on GitHub ↗
(callback: (cur: TreeNode, i: number) => void)

Source from the content-addressed store, hash-verified

152 }
153
154 forEach(callback: (cur: TreeNode, i: number) => void) {
155 return this.children.forEach(callback);
156 }
157
158 map<M>(callback: (cur: TreeNode, i: number) => M): M[] {
159 return this.children.map(callback);

Callers 15

emptyMethod · 0.95
getContainerFunction · 0.45
methodMixinsFunction · 0.45
mixinsFunction · 0.45
normalizePastedHTMLFunction · 0.45
serializeCodeBlockMethod · 0.45
serializeTableMethod · 0.45
TableDragBarClass · 0.45
renderObjMethod · 0.45
searchMethod · 0.45
createElementsMethod · 0.45

Calls

no outgoing calls

Tested by 1

makeTableInnerFunction · 0.36