Here you can find the source of Clear()
Array.prototype.Clear = function()
{
this.splice( 0, this.length );
};
Array.prototype.clear=function(){
this.length=0;
Array.prototype.clear = function() { return this.splice(0,this.length); };
Array.prototype.clear = Array.prototype.clear || function() {
this.length = 0;
};
Array.prototype.clear = function () { this.length = 0; return this; };
Array.prototype.clear = function(){
this.splice(0, this.length);