UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

29 lines (25 loc) 705 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ramda = require("ramda"); var _lengthUtils = require("./internal/lengthUtils"); /** * Returns true if length of array is smaller or equals than first argument * * @func * @category List * * @example * * const lengthSmallerThanEqualsOne = R_.gteThanLength(1) * lengthSmallerThanEqualsTwo([{},{}]) // false * lengthSmallerThanEqualsTwo([{}]) // true * lengthSmallerThanEqualsTwo([]) // true * * @sig Number -> [a] -> Boolean */ var gteThanLength = (0, _lengthUtils.compareLength)(_ramda.gte); var _default = gteThanLength; exports.default = _default;