ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
29 lines (27 loc) • 894 B
JavaScript
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = require("ramda");
/**
* Checks if input value is the Boolean primitive `true`. Will return false for Boolean objects
* created using the `Boolean` function as a constructor.
*
* @func isTrue
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.6.0|v2.6.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isFalse|isFalse}, {@link RA.isTruthy|isTruthy}, {@link RA.isFalsy|isFalsy}
* @example
*
* RA.isTrue(true); // => true
* RA.isTrue(Boolean(true)); // => true
* RA.isTrue(false); // => false
* RA.isTrue(1); // => false
* RA.isTrue('true'); // => false
* RA.isTrue(new Boolean(true)); // => false
*/
var isTrue = (0, _ramda.curryN)(1, (0, _ramda.identical)(true));
var _default = exports["default"] = isTrue;
;