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

Method some

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

* 类似数组的 some * @param fn

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

Source from the content-addressed store, hash-verified

163 * @param fn
164 */
165 some(fn: (node: IPublicModelNode, index: number) => boolean): boolean {
166 return this[nodeChildrenSymbol].some((item: InnerNode, index: number) => {
167 return fn(ShellNode.create(item)!, index);
168 });
169 }
170
171 /**
172 * 类似数组的 filter

Callers

nothing calls this directly

Calls 2

someMethod · 0.65
createMethod · 0.45

Tested by

no test coverage detected