I have a string maybe like this:
I'd like to have a prototype that returns a result like this:
var result=['000000000000000', '111111111111', '111111111']
So my prototype should split the string in as high as possible rows that all have the same characters (minimum: e.g. 8 characters) and return an array as result.
I have no idea how to code this prototype without a for-loop and I'd like to renounce on a for-loop.
Is there a easy way (e.g. with the MAP CONSTRUCTOR) to solve my problem?
Thanks in advance, Jonathan :-)