lib/commands/crdt/updatemap.js
function(key, state) {
        this._removeRemove(this.flags.remove, key);
        var op = this._getOp(this.flags.set, key);
        if (op) {
            op.state = state;
        } else {
            this.flags.set.push({key: key, state: state});
        }
        return this;
    }
function(key, state) {
        this._removeRemove(this.flags.remove, key);
        var op = this._getOp(this.flags.set, key);
        if (op) {
            op.state = state;
        } else {
            this.flags.set.push({key: key, state: state});
        }
        return this;
    }
function ( key , state ) { this . _removeRemove ( this . flags . remove , key ) ; var op = this . _getOp ( this . flags . set , key ) ; if ( op ) { op . state = state ; } else { this . flags . set . push ( { key : key , state : state } ) ; } return this ; }
Set a flag in a map.
@method setFlag
@param {String} key the key for the set in the map.
@param {Boolean} value the value for the flag.
@chainable}
Set a flag in a map .