source: node_modules/ramda-adjunct/src/lengthGte.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 957 bytes
Line 
1import { flip, gte } from 'ramda';
2
3import compareLength from './internal/compareLength';
4
5/**
6 * Returns `true` if the supplied list or string has a length greater than or equal to
7 * `valueLength`.
8 *
9 * @func lengthGte
10 * @memberOf RA
11 * @since {@link https://char0n.github.io/ramda-adjunct/2.8.0|v2.8.0}
12 * @category List
13 * @sig Number -> [*] -> Boolean
14 * @param {number} valueLength The length of the list or string
15 * @param {Array|string} value The list or string
16 * @return {boolean}
17 * @see {@link RA.lengthEq|lengthEq}, {@link RA.lengthNotEq|lengthNotEq}, {@link RA.lengthLt|lengthLt}, {@link RA.lengthGt|lengthGt}, {@link RA.lengthLte|lengthLte}, {@link http://ramdajs.com/docs/#gte|gte}, {@link http://ramdajs.com/docs/#length|length}
18 * @example
19 *
20 * RA.lengthGte(3, [1,2,3,4]); //=> true
21 * RA.lengthGte(3, [1,2,3]); //=> true
22 * RA.lengthGte(3, [1,2]); //=> false
23 */
24const lengthGte = compareLength(flip(gte));
25
26export default lengthGte;
Note: See TracBrowser for help on using the repository browser.