code: function(obj) {
        if (obj == null) return void 0;
        var id = this.modelId(this._isModel(obj) ? obj.attributes : obj);
        return this._byId[obj] || this._byId[id] || this._byId[obj.cid];
      }
docs: Get a model from the set by id.