arrayWithoutHoles.js 288 B

12345678910111213
  1. var _Array$isArray = require("../core-js/array/is-array");
  2. function _arrayWithoutHoles(arr) {
  3. if (_Array$isArray(arr)) {
  4. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
  5. arr2[i] = arr[i];
  6. }
  7. return arr2;
  8. }
  9. }
  10. module.exports = _arrayWithoutHoles;