title: Split large string in n-size chunks in JavaScript
body: <p>I would like to split a very large string (let's say, 10,000 characters) into N-size chunks.</p>
  
  <p>What would be the best way in terms of performance to do this?</p>
  
  <p>For instance:
  <code>"1234567890"</code> split by 2 would become <code>["12", "34", "56", "78", "90"]</code>.</p>
  
  <p>Would something like this be possible using <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/match"><code>String.prototype.match</code></a> and if so, would that be the best way to do it in terms of performance?</p>