UNPKG

to-boolean-x

Version:

Converts argument to a value of type Boolean.

13 lines (11 loc) 349 B
/** * The abstract operation ToBoolean converts argument to a value of type Boolean. * * @param {*} [value] - The value to be converted. * @returns {boolean} 'true' if value is truthy; otherwise 'false'. */ var toBoolean = function toBoolean(value) { return !!value; }; export default toBoolean; //# sourceMappingURL=to-boolean-x.esm.js.map