entries.js 258 B

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