for-each.js 259 B

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