Saturday 20 January 2018

javascript - Push one array into another

I have two arrays as
following.



var first =
[['2','23','33'],['2','23','33'],['2','23','33']]

var second =
['value1','value2','value3']



Now
i want to push second array into first like
this.



var first =
[['value1','value2','value3'],['2','23','33'],['2','23','33'],['2','23','33']]


Thanks
in advance

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...