source: node_modules/ramda/es/lte.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: 605 bytes
Line 
1import _curry2 from "./internal/_curry2.js";
2/**
3 * Returns `true` if the first argument is less than or equal to the second;
4 * `false` otherwise.
5 *
6 * @func
7 * @memberOf R
8 * @since v0.1.0
9 * @category Relation
10 * @sig Ord a => a -> a -> Boolean
11 * @param {Number} a
12 * @param {Number} b
13 * @return {Boolean}
14 * @see R.gte
15 * @example
16 *
17 * R.lte(2, 1); //=> false
18 * R.lte(2, 2); //=> true
19 * R.lte(2, 3); //=> true
20 * R.lte('a', 'z'); //=> true
21 * R.lte('z', 'a'); //=> false
22 */
23
24var lte =
25/*#__PURE__*/
26_curry2(function lte(a, b) {
27 return a <= b;
28});
29
30export default lte;
Note: See TracBrowser for help on using the repository browser.