Nodejs Array Clear Clear()

Here you can find the source of Clear()

Method Source Code

Array.prototype.Clear = function()
{
    this.splice( 0, this.length );
};

Related

  1. clear()
    Array.prototype.clear=function(){
      this.length=0;
    
  2. clear()
    Array.prototype.clear = function() {
      return this.splice(0,this.length);
    };
    
  3. clear()
    Array.prototype.clear = Array.prototype.clear || function() {
        this.length = 0;
    };
    
  4. clear()
    Array.prototype.clear = function () {
        this.length = 0;
        return this;
    }; 
    
  5. clear()
    Array.prototype.clear = function(){
      this.splice(0, this.length);