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

Function isFalsy

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

Source from the content-addressed store, hash-verified

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) =>
590 typeof value === 'string' ? value.toLowerCase() === 'false' || value === '0' : value === false
591
592export { getEnv }
593

Callers 5

env-flags.tsFile · 0.90
AuthModalFunction · 0.90
SignupFormContentFunction · 0.90
LoginPageFunction · 0.90
SSOFormFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected