reduce-right.js 279 B

12345678
  1. var reduceRight = require('../array/virtual/reduce-right');
  2. var ArrayPrototype = Array.prototype;
  3. module.exports = function (it) {
  4. var own = it.reduceRight;
  5. return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.reduceRight) ? reduceRight : own;
  6. };