MCPcopy
hub / github.com/marktext/marktext / map

Method map

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

Source from the content-addressed store, hash-verified

156 }
157
158 map<M>(callback: (cur: TreeNode, i: number) => M): M[] {
159 return this.children.map(callback);
160 }
161
162 reduce<M>(
163 callback: (memo: M, cur: TreeNode, i: number) => M,

Callers 15

eslint.config.jsFile · 0.45
normalizeHtmlFunction · 0.45
index.tsFile · 0.45
searchFunction · 0.45
simplifyFunction · 0.45
parseFunction · 0.45
footnote.spec.tsFile · 0.45
replacementFunction · 0.45
searchMethod · 0.45

Calls

no outgoing calls

Tested by 6

simplifyFunction · 0.36
parseFunction · 0.36
topTypesFunction · 0.36
logNonCriticalFunction · 0.36
makeTableBlockFunction · 0.36
readSourceStateFunction · 0.36