source: node_modules/ramda/src/or.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: 640 bytes
Line 
1var _curry2 =
2/*#__PURE__*/
3require("./internal/_curry2.js");
4/**
5 * Returns the first argument if it is truthy, otherwise the second argument.
6 * Acts as the boolean `or` 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.either, R.and
17 * @example
18 *
19 * R.or(true, true); //=> true
20 * R.or(true, false); //=> true
21 * R.or(false, true); //=> true
22 * R.or(false, false); //=> false
23 */
24
25
26var or =
27/*#__PURE__*/
28_curry2(function or(a, b) {
29 return a || b;
30});
31
32module.exports = or;
Note: See TracBrowser for help on using the repository browser.