let result = [];

for (let i = 0; i < line.length; i += n) {

result.push(line.slice(i, i + n));

}

Reply to this note

Please Login to reply.

Discussion

No replies yet.