ramda-adjunct icon indicating copy to clipboard operation
ramda-adjunct copied to clipboard

lengthInRange

Open Undistraction opened this issue 6 years ago • 0 comments

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.

Undistraction avatar Apr 30 '18 07:04 Undistraction