UNPKG

is-truthy-x

Version:
16 lines (13 loc) 378 B
import toBoolean from 'to-boolean-x'; /** * This method tests if a given value is truthy. * * @function isTruthy * @param {*} [value] - The value to test. * @returns {boolean} `true` if the value is truthy: otherwise `false`. */ var isTruthy = function isTruthy(value) { return toBoolean(value); }; export default isTruthy; //# sourceMappingURL=is-truthy-x.esm.js.map