arrayLikeToArray.js 212 B

123456789
  1. export default 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. }