forked from ard/ruoyi-api

‘liusuyi’
2023-07-15 29f21c70e977baf0bc2c4a2c37ba3096292c1388
1
2
3
4
5
6
7
8
9
var isPrototypeOf = require('../../internals/object-is-prototype-of');
var method = require('../array/virtual/slice');
 
var ArrayPrototype = Array.prototype;
 
module.exports = function (it) {
  var own = it.slice;
  return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.slice) ? method : own;
};