unshift

Description

Adds new elements to the beginning of an array and returns the updated array.

Input / Parameter

NameDescriptionInput TypeDefaultOptionsRequired

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

Output

DescriptionOutput Type

The updated array with the items added.

Array/List

Callback

N/A

Video

Coming Soon.

Example

Coming Soon.

Steps

Coming Soon.

Result

Coming Soon.

Last updated