UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

25 lines (22 loc) 562 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ramda = require("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 = (0, _ramda.converge)(_ramda.curry, [_ramda.pipe]); var _default = pipeC; exports.default = _default;