Array
.Shift
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
Array
Array
.Shift
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
Array
All Members
Variables
length
Constructors
Array
Functions
Add
Clear
Concat
Join
Pop
Push
RemoveAt
Reverse
Shift
Sort
Unshift
function
Shift () : object
Description
Removes the first element of the array and returns it
var
arr =
new
Array (
"Hello"
,
"World"
);
arr.Shift();
// arr now only contains "World"
print (
"World"
);