I\'d like to split a string only the at the first n occurrences of a delimiter. I know, I could add them together using a loop, but isn\'t there a more straight forward appr
var result = [string.split(' ',1).toString(), string.split(' ').slice(1).join(' ')];
Results in:
["Split", "this, but not this"]