js split string on capital letter second

JavaScript
'ThisIsTheStringToSplit'.split(/(?=[A-Z])/); // positive lookahead to keep the capital letters

Source

Also in JavaScript: