main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
904 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | exports.__esModule = true;
|
---|
| 4 | exports["default"] = void 0;
|
---|
| 5 | var _ramda = require("ramda");
|
---|
| 6 | /**
|
---|
| 7 | * Checks if input value is the Boolean primitive `true`. Will return false for Boolean objects
|
---|
| 8 | * created using the `Boolean` function as a constructor.
|
---|
| 9 | *
|
---|
| 10 | * @func isTrue
|
---|
| 11 | * @memberOf RA
|
---|
| 12 | * @since {@link https://char0n.github.io/ramda-adjunct/2.6.0|v2.6.0}
|
---|
| 13 | * @category Type
|
---|
| 14 | * @sig * -> Boolean
|
---|
| 15 | * @param {*} val The value to test
|
---|
| 16 | * @return {boolean}
|
---|
| 17 | * @see {@link RA.isFalse|isFalse}, {@link RA.isTruthy|isTruthy}, {@link RA.isFalsy|isFalsy}
|
---|
| 18 | * @example
|
---|
| 19 | *
|
---|
| 20 | * RA.isTrue(true); // => true
|
---|
| 21 | * RA.isTrue(Boolean(true)); // => true
|
---|
| 22 | * RA.isTrue(false); // => false
|
---|
| 23 | * RA.isTrue(1); // => false
|
---|
| 24 | * RA.isTrue('true'); // => false
|
---|
| 25 | * RA.isTrue(new Boolean(true)); // => false
|
---|
| 26 | */
|
---|
| 27 |
|
---|
| 28 | var isTrue = (0, _ramda.curryN)(1, (0, _ramda.identical)(true));
|
---|
| 29 | var _default = isTrue;
|
---|
| 30 | exports["default"] = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.