arrayLikeToArray.js 312 B

1234567891011
  1. function _arrayLikeToArray(arr, len) {
  2. if (len == null || len > arr.length) len = arr.length;
  3. for (var i = 0, arr2 = new Array(len); i < len; i++) {
  4. arr2[i] = arr[i];
  5. }
  6. return arr2;
  7. }
  8. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;