forked from ard/ruoyi-api

zhangjian
2023-08-19 3940ebf3e39da287974c4f49474e668d33fed2df
1
2
3
4
5
6
7
8
9
var isPrototypeOf = require('../../internals/object-is-prototype-of');
var method = require('../array/virtual/entries');
 
var ArrayPrototype = Array.prototype;
 
module.exports = function (it) {
  var own = it.entries;
  return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.entries) ? method : own;
};