source: node_modules/ramda/es/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: 620 bytes
RevLine 
[d24f17c]1import _curry2 from "./internal/_curry2.js";
2/**
3 * Returns the first argument if it is truthy, otherwise the second argument.
4 * Acts as the boolean `or` 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.either, R.and
15 * @example
16 *
17 * R.or(true, true); //=> true
18 * R.or(true, false); //=> true
19 * R.or(false, true); //=> true
20 * R.or(false, false); //=> false
21 */
22
23var or =
24/*#__PURE__*/
25_curry2(function or(a, b) {
26 return a || b;
27});
28
29export default or;
Note: See TracBrowser for help on using the repository browser.