l'hai scritto più o meno tu:

codice:
var vettore=stringa.split('-');
ciao