clear

clear() -> Array

Clears the array (makes it empty).

Example

var guys = ['Sam', 'Justin', 'Andrew', 'Dan'];
guys.clear();
// -> []
guys
// -> []