myChunk
Array.prototype.myChunk = function(size){ let { length } = this,line = Math.ceil(length / size),res = []; for(let i = 0;i < line;i++){ let temp = arr.slice(i * size, (i + 1) * size) res.push(temp); } return res; }
以自己现在的努力程度,还没有资格和别人拼天赋