fill.js 243 B

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