arrayWithHoles.js

539 B v1.0
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = _arrayWithHoles;
function _arrayWithHoles(arr) {
  var arrayIterator;
  if (!Array.isArray(arr)) return;
  if (typeof Symbol !== "undefined") {
    arrayIterator = arr[Symbol.iterator];
    if (arrayIterator !== [][Symbol.iterator]) return;
  }
  if (!arrayIterator) {
    arrayIterator = arr["@@iterator"];
    if (arrayIterator && arrayIterator !== []["@@iterator"]) return;
  }
  return arr;
}

//# sourceMappingURL=arrayWithHoles.js.map