Sort an array Javascript from string : I have a variable string 

> mymvariable

 who contain :

    864827,,,34200,Sète ,,,445958,,,30220,AIGUES MORTES,,,169807,,,34570,PIGNAN,,,546049,,,13006,MARSEILLE,,

I would like to cast this string to an array like this:

    1 864827,,,34200,Sète ,,, 
    2 445958,,,30220,AIGUES MORTES,,, 
    3 169807,,,34570,PIGNAN,,, 
    4 546049,,,13006,MARSEILLE,,

I have try to use:

    var array = myvariable.split(",");
But when I do a array[0] that give me the first field here :

> 864827

I would like to have the first line when I do array[0] like this:

> 1 864827,,,34200,Sète ,,,

Is it possible to format the string like this ?

Thanks you