(JS) Function reverseArray() take an array as argument and returns a new array with the elements in the reverse order.
-
Updated
Jan 21, 2021 - JavaScript
(JS) Function reverseArray() take an array as argument and returns a new array with the elements in the reverse order.
Add one or more elements to the beginning of a collection.
Add elements from one collection to the beginning of another collection.
Functions append() and prepend(), which are alternatives to Array.push() and Array.unshift()
Pool works as a queue or stack
ES spec-compliant Array.prototype.unshift shim/polyfill/replacement that works as far down as ES3
Add a description, image, and links to the unshift topic page so that developers can more easily learn about it.
To associate your repository with the unshift topic, visit your repo's landing page and select "manage topics."