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