ramda-extension
Version:
Helpful functions built on top of the mighty Ramda
19 lines (18 loc) • 474 B
JavaScript
import { gt } from 'ramda';
import { compareLength } from './internal/lengthUtils';
/**
* Returns true if length of array is smaller than first argument
*
* @func
* @category List
*
* @example
*
* const lengthSmallerThanTwo = R_.gtThanLength(2)
* lengthSmallerThanTwo([{}]) // true
* lengthSmallerThanTwo([{},{}]) // false
*
* @sig Number -> [a] -> Boolean
*/
var gtThanLength = /*#__PURE__*/compareLength(gt);
export default gtThanLength;