What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-08-31 00:25:02
javascript extend array
The .push method can take multiple arguments. You can use the spread operator to pass all the elements of the second array as arguments to .push: >>> a.push(...b) If your browser does not support ECMAScript 6, you can use .apply instead: >&g... Add solution
Best helpers
The Alpha
+5
Mikhail T.
+5
Glwday
+5
Phil H
+5
Malianto
+5
Bill Schanze
+5
Rob Deary
+5
Anupheaus
+5