Is there a way to split a string into 2 words using space as a delimiter? I know there is split(" ") but it is splitting it by one word. I want something like
var at = "this is not the end of the world boo";
at.somefunc(" ", 2)//returns ["this is", "not the", "end of", "the world", "boo"]