arrayLikeToArray.js 234 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } module.exports = _arrayLikeToArray;