froebel
Version:
TypeScript utility library
19 lines (12 loc) • 453 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.truthy = exports.falsy = void 0;
/** Checks if `value` is truthy. Literal types are narrowed accordingly. */
const truthy = value => !!value;
/** Checks if `value` is falsy. Literal types are narrowed accordingly. */
exports.truthy = truthy;
const falsy = value => !value;
exports.falsy = falsy;
module.exports = Object.assign(exports.default || {}, exports);