to-spliced.js 350 B

123456789
  1. var isPrototypeOf = require('../../internals/object-is-prototype-of');
  2. var method = require('../array/virtual/to-spliced');
  3. var ArrayPrototype = Array.prototype;
  4. module.exports = function (it) {
  5. var own = it.toSpliced;
  6. return (it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.toSpliced)) ? method : own;
  7. };