MCPcopy Create free account
hub / github.com/axe-api/axe-api / isBoolean

Function isBoolean

packages/axe-api/src/Handlers/Helpers.ts:449–461  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

447};
448
449export const isBoolean = (value: any): boolean => {
450 if (value === undefined || value === null) {
451 return false;
452 }
453
454 value = ((value || "") as string).trim().toLocaleLowerCase();
455
456 if (value === "true" || value === "1" || value === "on" || value === "yes") {
457 return true;
458 }
459
460 return false;
461};
462
463export const getModelCacheConfiguration = (
464 model: IModelService,

Callers 2

parseSectionsMethod · 0.90
Helpers.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected