MCPcopy
hub / github.com/cucumber/cucumber-js / doesHaveValue

Function doesHaveValue

src/value_checker.ts:1–3  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

1export function doesHaveValue<T>(value: T): boolean {
2 return !doesNotHaveValue(value)
3}
4
5export function doesNotHaveValue<T>(value: T): boolean {
6 return value === null || value === undefined

Callers 15

cli_steps.tsFile · 0.90
parseEnvStringMethod · 0.90
normalizeJsonOutputFunction · 0.90
getTestStepResultsFunction · 0.90
getAcceptedPickleFunction · 0.90
getGherkinDocumentFunction · 0.90
getTestCaseFunction · 0.90
getTestCaseStartedFunction · 0.90
getTestStepAttachmentsFunction · 0.90
hooks.tsFile · 0.90
parseFunction · 0.90
buildSupportCodeLibraryFunction · 0.90

Calls 1

doesNotHaveValueFunction · 0.85

Tested by

no test coverage detected