source: node_modules/ramda/es/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: 626 bytes
Line 
1import _curry2 from "./internal/_curry2.js";
2/**
3 * Returns the first argument if it is falsy, otherwise the second argument.
4 * Acts as the boolean `and` statement if both inputs are `Boolean`s.
5 *
6 * @func
7 * @memberOf R
8 * @since v0.1.0
9 * @category Logic
10 * @sig a -> b -> a | b
11 * @param {Any} a
12 * @param {Any} b
13 * @return {Any}
14 * @see R.both, R.or
15 * @example
16 *
17 * R.and(true, true); //=> true
18 * R.and(true, false); //=> false
19 * R.and(false, true); //=> false
20 * R.and(false, false); //=> false
21 */
22
23var and =
24/*#__PURE__*/
25_curry2(function and(a, b) {
26 return a && b;
27});
28
29export default and;
Note: See TracBrowser for help on using the repository browser.