function add(value) {
        var h = hash(value);
        var candidates = items[h];

        if (!candidates) {
            candidates = items[h] = [];
        }

        for (var i = candidates.length - 1; i >= 0; i--) {
            if (value === candidates[i]) {
                return false; // Already in set.
            }
        }

        candidates.push(value);
        count++;
        return true;
    }
/**
     * Add the given value to the set. Returns true if this operation
     * actually changed the set (that is, true if the item wasn't already
     * in the set).
     */
Add the given value to the set. Returns true if this operation
actually changed the set (that is, true if the item wasn't already
in the set).
Add the given value to the set . Returns true if this operation actually changed the set ( that is true if the item wasn ' t already in the set ) .
function add(value) {
        var h = hash(value);
        var candidates = items[h];
        if (!candidates) {
            candidates = items[h] = [];
        }
        for (var i = candidates.length - 1; i >= 0; i--) {
            if (value === candidates[i]) {
                return false; 
            }
        }
        candidates.push(value);
        count++;
        return true;
    }
function add ( value ) { var h = hash ( value ) ; var candidates = items [ h ] ; if ( ! candidates ) { candidates = items [ h ] = [ ] ; } for ( var i = candidates . length - 1 ; i >= 0 ; i -- ) { if ( value === candidates [ i ] ) { return false ; } } candidates . push ( value ) ; count ++ ; return true ; }
Add the given value to the set.
Add the given value to the set .
// Already in set.