MCPcopy
hub / github.com/TypeStrong/ts-node / isOneOf

Function isOneOf

src/test/helpers.ts:338–340  ·  view source on GitHub ↗
(value: V, arrayOfPossibilities: ReadonlyArray<V>)

Source from the content-addressed store, hash-verified

336
337/** Essentially Array:includes, but with tweaked types for checks on enums */
338export function isOneOf<V>(value: V, arrayOfPossibilities: ReadonlyArray<V>) {
339 return arrayOfPossibilities.includes(value as any);
340}

Callers 3

generateTargetsFunction · 0.90
generateEntrypointFunction · 0.90
createImporterFunction · 0.90

Calls

no outgoing calls

Tested by 3

generateTargetsFunction · 0.72
generateEntrypointFunction · 0.72
createImporterFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…