I have the following string:
foofaafoofaafoofaafoofaafoofaa
An array with 10 rows (if I split by every 3rd character, that is), which looks something like this, if I were to instantiate it:
var fooarray = new Array ('foo', 'faa', 'foo', 'faa', 'foo', 'faa', 'foo', 'faa', 'foo', 'faa');
So I want a function, either built-in or custom-made, which can help me split up a string by every nth character.