UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

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