arrayLikeToArray.js 299 B

123456
  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++) arr2[i] = arr[i];
  4. return arr2;
  5. }
  6. module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;