#boolean #safety #true #false #invalid #values #pass

boolean_checker

Checks boolean values for type safety

1 unstable release

0.1.0 Apr 20, 2023

#9 in #invalid

MIT license

3KB
50 lines

Usage/Examples

Checks the value of a boolean. Essential for type safety.

is_true(true); // true
is_true(false); // false
is_true("false"); // invalid

is_false(false); // true
is_false(true); // false
is_false("true"); // invalid

Assure that you only pass in boolean values.

No runtime deps