ramda-extension
Version:
Helpful functions built on top of the mighty Ramda
25 lines (22 loc) • 578 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _ramda = require("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 = (0, _ramda.converge)(_ramda.curry, [_ramda.compose]);
var _default = composeC;
exports.default = _default;