40
rated 0 times
[
44]
[
4]
/ answers: 1 / hits: 57792
/ 12 Years ago, tue, october 2, 2012, 12:00:00
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.
More From » string