Given a string like this:
"boy, girl, dog, cat"
What would be a good way to get the first word and the rest of them, so I could have this:
var first_word = "boy";
var rest = "girl, dog, cat";
Right now I have this:
my_string.split(","); But that gives me all the words that are between the commas.