src/lib/collections/sorted-list.js
function () {
        var threshold = this.slot.keys.length * 0.9;

        if (this.slot.size < threshold) {
            this.capacity(this.slot.size);
        }
    }
function () {
        var threshold = this.slot.keys.length * 0.9;

        if (this.slot.size < threshold) {
            this.capacity(this.slot.size);
        }
    }
function ( ) { var threshold = this . slot . keys . length * 0.9 ; if ( this . slot . size < threshold ) { this . capacity ( this . slot . size ) ; } }
Sets the capacity to the actual number of elements in the SortedList, if that number is less than 90 percent of current capacity.
Sets the capacity to the actual number of elements in the SortedList if that number is less than 90 percent of current capacity .