slice.js 248 B

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