Checks if the given value is truthy.
isTruthy(true); // true isTruthy('a string'); // true isTruthy(1); // true isTruthy(0); // false isTruthy(null); // false isTruthy(undefined); // false isTruthy(false); // false isTruthy(NaN); // false
The value to check.
Whether the value is truthy.
Generated using TypeDoc
Checks if the given value is truthy.
isTruthy(true); // true isTruthy('a string'); // true isTruthy(1); // true isTruthy(0); // false isTruthy(null); // false isTruthy(undefined); // false isTruthy(false); // false isTruthy(NaN); // false