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