IndigoObject.prototype.match = function()

in indigo.js [594:601]


IndigoObject.prototype.match = function(query) {
    this.d._setSessionId();
    let newobj = this.d._checkResult(this.d._lib.indigoMatch(this.id, query.id));
    if (newobj === 0 || newobj === -1)
        return null;
    else
        return new IndigoObject(this.d, newobj, this);
};