MCPcopy
hub / github.com/deepops-ai/deepops / searchFunction

Method searchFunction

ui/src/utils/treeNode.ts:22–28  ·  view source on GitHub ↗
(search)

Source from the content-addressed store, hash-verified

20 }
21
22 static searchFunction(search) {
23 if (typeof search === 'function') {
24 return search;
25 }
26
27 return (value, node) => (search instanceof TreeNode ? node === search : value === search);
28 }
29
30 constructor(value, children = []) {
31 this.value = value;

Callers 2

findMethod · 0.80
getPathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected