trying to concat a single value to an array in javascript
Good sirs. I'm trying to produce a new_array consisting of old_array[0] +
old_array2.slice(1)
I cannot see how concat would help me here, unless I create a 3rd
temporary array out of old_array[0].
Is that the only way to do it?
No comments:
Post a Comment