MCPcopy
hub / github.com/sindresorhus/ow / test

Function test

source/test.ts:13–15  ·  view source on GitHub ↗
(value: T, label: string | Function, predicate: BasePredicate<T>, idLabel = true)

Source from the content-addressed store, hash-verified

11@param idLabel - If true, the label is a variable or type. Default: true.
12*/
13export default function test<T>(value: T, label: string | Function, predicate: BasePredicate<T>, idLabel = true): void {
14 predicate[testSymbol](value, test, label, idLabel);
15}

Callers 15

owFunction · 0.85
valueFunction · 0.85
index.tsFile · 0.85
ofTypeFunction · 0.85
ofTypeDeepFunction · 0.85
partialFunction · 0.85
exactFunction · 0.85
absent.tsFile · 0.85
nullable.tsFile · 0.85
iterable.tsFile · 0.85
array-buffer.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…