source: node_modules/ramda/src/and.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 646 bytes
Line 
1var _curry2 =
2/*#__PURE__*/
3require("./internal/_curry2.js");
4/**
5 * Returns the first argument if it is falsy, otherwise the second argument.
6 * Acts as the boolean `and` statement if both inputs are `Boolean`s.
7 *
8 * @func
9 * @memberOf R
10 * @since v0.1.0
11 * @category Logic
12 * @sig a -> b -> a | b
13 * @param {Any} a
14 * @param {Any} b
15 * @return {Any}
16 * @see R.both, R.or
17 * @example
18 *
19 * R.and(true, true); //=> true
20 * R.and(true, false); //=> false
21 * R.and(false, true); //=> false
22 * R.and(false, false); //=> false
23 */
24
25
26var and =
27/*#__PURE__*/
28_curry2(function and(a, b) {
29 return a && b;
30});
31
32module.exports = and;
Note: See TracBrowser for help on using the repository browser.