MrShi
2026-04-29 275596fc999e12e2b6f2f0ea1a0ddcc9efdc6567
1
2
3
4
5
6
7
8
9
10
'use strict';
var isPrototypeOf = require('../../internals/object-is-prototype-of');
var method = require('../array/virtual/reduce-right');
 
var ArrayPrototype = Array.prototype;
 
module.exports = function (it) {
  var own = it.reduceRight;
  return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.reduceRight) ? method : own;
};