UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

32 lines (30 loc) 689 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /** * Alias for Boolean constructor. Returns 'true' for truthy values. * * @func * @category Logic * * @param {any} input * @return {Boolean} `true` if `input` is truthy * * @example * * R_.isTruthy(true) // true * R_.isTruthy({}) // true * R_.isTruthy([]) // true * R_.isTruthy(1) // true * R_.isTruthy("hello") // true * R_.isTruthy(false) // false * R_.isTruthy(0) // false * R_.isTruthy("") // false * * @sig a -> Boolean */ var isTruthy = Boolean; var _default = isTruthy; exports.default = _default;