Array
.Clear
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
Array
Array
.Clear
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
Clear () :
void
Description
Empties the array. The length of the array will be zero.
var
hello =
new
Array (
"Hello"
,
"World"
);
hello.Clear();
// hello now contains zero elements