MCPcopy Create free account
hub / github.com/EvoMap/evolver / filterText

Function filterText

src/webui/observer/assets.js:119–123  ·  view source on GitHub ↗
(items, q)

Source from the content-addressed store, hash-verified

117}
118
119function filterText(items, q) {
120 if (!q) return items;
121 const needle = String(q).toLowerCase();
122 return items.filter((item) => JSON.stringify(item).toLowerCase().includes(needle));
123}
124
125function matchesAsset(item, id) {
126 if (!item || !id) return false;

Callers 5

listGenesFunction · 0.85
listCapsulesFunction · 0.85
listEventsFunction · 0.85
listCandidatesFunction · 0.85
listAssetCallsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected