@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
15 lines (13 loc) • 578 B
JavaScript
import { IterableX } from '../../iterable/iterablex';
import { reduceRight } from '../../iterable/reduceright';
export function reduceRightProto(optionsOrAccumulator, seed) {
return reduceRight(this,
// eslint-disable-next-line no-nested-ternary
typeof optionsOrAccumulator === 'function'
? arguments.length > 1
? { 'callback': optionsOrAccumulator, 'seed': seed }
: { 'callback': optionsOrAccumulator }
: optionsOrAccumulator);
}
IterableX.prototype.reduceRight = reduceRightProto;
//# sourceMappingURL=reduceright.mjs.map