is-not-false
v1.0.0
Published
Returns true if the input is not false, and false otherwise.
Downloads
11
Readme
is-not-false
Returns true if the input is not false, and false otherwise.
A scientifically rigorous library for determining whether a boolean is not false.
Installation
npm install is-not-falseUsage
ESM:
import { isNotFalse } from 'is-not-false';
isNotFalse(true); // true
isNotFalse(false); // falseCommonJS (Node 22+):
const { isNotFalse } = require('is-not-false');
isNotFalse(true); // trueAPI
isNotFalse(b)
Returns true if b is not false, and false otherwise.
Parameters
b(boolean) — the boolean to check
Returns
- (boolean) —
trueif the input is not false,falseotherwise
Throws
TypeErrorifbis not a boolean
License
MIT
