growArray() {
        if (this.head) {
            // copy existing data, head to end, then beginning to tail.
            this.list = this.copyArray(true);
            this.head = 0;
        }
        // head is at 0 and array is now full, safe to extend
        this.tail = this.list.length;
        this.list.length *= 2;
        this.capacityMask = (this.capacityMask << 1) | 1;
    }
/**
     * Grows the internal list array.
     * @private
     */
Grows the internal list array.
@private
Grows the internal list array . @private
growArray() {
        if (this.head) {
            this.list = this.copyArray(true);
            this.head = 0;
        }
        this.tail = this.list.length;
        this.list.length *= 2;
        this.capacityMask = (this.capacityMask << 1) | 1;
    }
growArray ( ) { if ( this . head ) { this . list = this . copyArray ( true ) ; this . head = 0 ; } this . tail = this . list . length ; this . list . length *= 2 ; this . capacityMask = ( this . capacityMask << 1 ) | 1 ; }
Grows the internal list array.
Grows the internal list array .
// copy existing data, head to end, then beginning to tail. // head is at 0 and array is now full, safe to extend