Array.unshift()

Availability

Flash Player 5.

Usage

my_array.unshift(value1,value2,...valueN)

Parameters

value1,...valueN One or more numbers, elements, or variables to be inserted at the beginning of the array.

Returns

The new length of the array.

Description

Method; adds one or more elements to the beginning of an array and returns the array's new length.