dimanche 19 avril 2015

I need help in combining 2 elements in an array together

here i am using css selectors and getting values from a web site,the values which mapped into an array.I need to merge the first element and second element together similarly I need to map the third and fourth elements


this is how the result come:



[ 'Mon',
' 7:30 AM to 11 PM',
' Tue',
' 7:30 AM to 11 PM',
' Wed',
' 7:30 AM to 11 PM',
' Thu',
' 7:30 AM to 11 PM',
' Fri',
' 7:30 AM to 11 PM',
' Sat',
' 7:30 AM to 11 PM',
' Sun',
' 7:30 AM to 11 PM']


here i need to merge the day and timing into a single array element


Aucun commentaire:

Enregistrer un commentaire