ramda-adjunct
ramda-adjunct copied to clipboard
lengthInRange
Is your feature request related to a problem? Please describe. Determines if the Array-like object length is in specified boundaries.
Describe the solution you'd like
const lengthInRange = R.curry((from, to, list) => compareLength(RA.inRange(from, to), list);
lengthInRange(0, 4, [1,2,3]) //=> true
lengthInRange(0, 4, [1,2,3,4]) //=> false
Describe alternatives you've considered
--
Additional context
See #527 and #523
compareLength is a function that is already part of the codebase.