MCPcopy Index your code
hub / github.com/simstudioai/sim / isTruthy

Function isTruthy

apps/sim/lib/core/config/env.ts:585–586  ·  view source on GitHub ↗
(value: string | boolean | number | undefined)

Source from the content-addressed store, hash-verified

583
584// Need this utility because t3-env is returning string for boolean values.
585export const isTruthy = (value: string | boolean | number | undefined) =>
586 typeof value === 'string' ? value.toLowerCase() === 'true' || value === '1' : Boolean(value)
587
588// Utility to check if a value is explicitly false (defaults to false only if explicitly set)
589export const isFalsy = (value: string | boolean | number | undefined) =>

Callers 15

next.config.tsFile · 0.90
isSubBlockFeatureEnabledFunction · 0.90
isSubBlockHiddenFunction · 0.90
env-flags.tsFile · 0.90
fallbackFlagsFunction · 0.90
pi.tsFile · 0.90
AuthModalFunction · 0.90
ShareModalFunction · 0.90
navigation.tsFile · 0.90
GeneralFunction · 0.90
AuthSelectorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected