forked from ard/ruoyi-api

liusuyi
2024-07-30 9cc1e95b63fde336ebf4df413b3d1e79ece375f0
1
2
3
4
5
6
7
8
9
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;
};