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

Method find

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

Source from the content-addressed store, hash-verified

48 }
49
50 find(search) {
51 const searchFn = TreeNode.iterFunction(TreeNode.searchFunction(search));
52 if (searchFn(this)) {
53 return this;
54 }
55 for (let i = 0; i < this.children.length; i++) {
56 const result = this.children[i].find(search);
57 if (result) {
58 return result;
59 }
60 }
61 return null;
62 }
63
64 getPath(search) {
65 const searchFn = TreeNode.iterFunction(TreeNode.searchFunction(search));

Callers 15

ValueMapping.tsxFile · 0.80
getThresholdFunction · 0.80
DatasourceSelectFunction · 0.80
calcValueOnSeriesDataFunction · 0.80
getDatasourceFunction · 0.80
getSuitableTimeUnitFunction · 0.80
paletteColorNameToHexFunction · 0.80
replaceWithVariablesFunction · 0.80
findOverrideFunction · 0.80
findRuleInOverrideFunction · 0.80
PageFunction · 0.80

Calls 2

iterFunctionMethod · 0.80
searchFunctionMethod · 0.80

Tested by

no test coverage detected