UNPKG

630 BJavaScriptView Raw
1var _curry2 =
2/*#__PURE__*/
3require("./internal/_curry2");
4/**
5 * Returns `true` if both arguments are `true`; `false` otherwise.
6 *
7 * @func
8 * @memberOf R
9 * @since v0.1.0
10 * @category Logic
11 * @sig a -> b -> a | b
12 * @param {Any} a
13 * @param {Any} b
14 * @return {Any} the first argument if it is falsy, otherwise the second argument.
15 * @see R.both, R.xor
16 * @example
17 *
18 * R.and(true, true); //=> true
19 * R.and(true, false); //=> false
20 * R.and(false, true); //=> false
21 * R.and(false, false); //=> false
22 */
23
24
25var and =
26/*#__PURE__*/
27_curry2(function and(a, b) {
28 return a && b;
29});
30
31module.exports = and;
\No newline at end of file