ix
Version:
The Interactive Extensions for JavaScript
21 lines (19 loc) • 852 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.reduceRightProto = void 0;
const iterablex_js_1 = require("../../iterable/iterablex.js");
const reduceright_js_1 = require("../../iterable/reduceright.js");
function reduceRightProto(optionsOrAccumulator, seed) {
return (0, reduceright_js_1.reduceRight)(this,
// eslint-disable-next-line no-nested-ternary
typeof optionsOrAccumulator === 'function'
? arguments.length > 1
? // prettier-ignore
{ 'callback': optionsOrAccumulator, 'seed': seed }
: // prettier-ignore
{ 'callback': optionsOrAccumulator }
: optionsOrAccumulator);
}
exports.reduceRightProto = reduceRightProto;
iterablex_js_1.IterableX.prototype.reduceRight = reduceRightProto;
//# sourceMappingURL=reduceright.js.map