unshift
Last updated
Last updated
var
The name of the array to add new elements to. The return will affect the variable.
String/Text
-
-
Partial (Yes if no 'data'.)
data
The array to add new elements to.
Array/List
-
-
Partial (Yes if no 'var'.)
value
Element to be added to the array.
String/Text
-
-
Yes
The updated array with the items added.
Array/List