UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

17 lines (16 loc) 449 B
import { converge, curry, compose } from 'ramda'; /** * Creates curried compose. The rightmost function determines the arity of curry. * * @func * @category Function * * @example * * const appendAndRejectNil = R_.composeC(R.rejectNil, R.append); * const appendCAndRejectNil = appendAndRejectNil('c'); * appendCAndRejectNil(['a', null]) // ['a', 'c']; * */ var composeC = /*#__PURE__*/converge(curry, [compose]); export default composeC;