SyntaxFix
Write A Post
Hire A Developer
Questions
Example of prepending in-place:
var A = [7,8,9]_x000D_ var B = [1,2,3]_x000D_ _x000D_ A.unshift(...B)_x000D_ _x000D_ console.log(A) // [1,2,3,7,8,9]