UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

28 lines (24 loc) 623 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 than first argument * * @func * @category List * * @example * * const lengthSmallerThanTwo = R_.gtThanLength(2) * lengthSmallerThanTwo([{}]) // true * lengthSmallerThanTwo([{},{}]) // false * * @sig Number -> [a] -> Boolean */ var gtThanLength = (0, _lengthUtils.compareLength)(_ramda.gt); var _default = gtThanLength; exports.default = _default;