JavaScript diviser la chaîne en tableau par virgule et espace

input.split(/[ ,]+/); //splits string using RegEx on a space OR a comma
Powerful Penguin