KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to split a very large string (let's say, 10,000 characters) into N-size chunks. What would be the best way in terms of performance to do this? For instance: "1234567890" split by 2 would become ["12", "34", "56", "78", "90"] . Would something like this be possible using String.prototype.match and if so, would that be the best way to do it in terms of performance?
Tags (comma-separated)
Save Edits
Cancel