arrayLikeToArray.js 200 B

12345
  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++) arr2[i] = arr[i];
  4. return arr2;
  5. }