UNPKG

ramda-adjunct

Version:

Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.

8 lines (5 loc) 183 B
import { curry, compose, length } from 'ramda'; const compareLength = curry((comparator, value, list) => compose(comparator(value), length)(list) ); export default compareLength;