clear :: Array

clear() -> Array

 

Clears the array (makes it empty).

 

Example

 

var guys = ['Sam''Justin''Andrew''Dan'];

 

guys.clear();

// -> []

guys

// -> []


Prototype API 1.5.0 - prototypejs.org