Last change
on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
279 bytes
|
Line | |
---|
1 | var reduceRight = require('../array/virtual/reduce-right');
|
---|
2 |
|
---|
3 | var ArrayPrototype = Array.prototype;
|
---|
4 |
|
---|
5 | module.exports = function (it) {
|
---|
6 | var own = it.reduceRight;
|
---|
7 | return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.reduceRight) ? reduceRight : own;
|
---|
8 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.