MCPcopy Create free account
hub / github.com/Kong/httpsnippet / testFilter

Function testFilter

src/targets/targets.test.ts:55–57  ·  view source on GitHub ↗
(property: keyof T, list: T[keyof T][])

Source from the content-addressed store, hash-verified

53
54const testFilter =
55 <T>(property: keyof T, list: T[keyof T][]) =>
56 (item: T) =>
57 list.length > 0 ? list.includes(item[property]) : true;
58
59availableTargets()
60 .filter(testFilter('key', targetFilter))

Callers 1

targets.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…