isFlagOn
sabrobotix-suite / lib/features / isFlagOn
Function: isFlagOn()
isFlagOn(
value):boolean
Defined in: lib/features.ts:40
Whether a switch is on.
Only the literal true counts. Anything else — unset, empty, 1, yes, a
value somebody meant to fill in later — is off, because the alternative is a
feature that turns itself on by accident.
Parameters
value
string | null | undefined
Returns
boolean