AbstractStatic ReadonlyIndeterminateA constant value that represents an indeterminate value.
StaticconvertConverts from a value to a trilean value.
This is similar to parse, but it also supports non string inputs which will be converted to a boolean.
The value to convert.
The fallback value in the case that val cannot be converted. This will only be used in the case that val is a string, null, or undefined.
The trilean value of val. If val is null or undefined, then fallback is returned. If val is a string, then the return value of parse will be used. If val is a boolean, then it will be directly returned. If val is equal to Indeterminate, then Indeterminate will be returned. Otherwise, the truthy nature of value will be returned.
StaticisGets a value that determines if val is a trilean supported value.
The value to test.
True if val is a trilean value. False otherwise.
StaticisStaticparseStaticstringifyConverts a trilean value to a string.
The value to convert.
A string of true if x is true, false if x is false, and indeterminate if x is the indeterminate symbol.
A utility class for trilean values.