A-C > Array.unshift

Array.unshift

Syntax

myArray.unshift(value1,value2,...valueN);

Arguments

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

Description

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

Player

Flash 5 or later.