getOutputById(id, options = {disconnected: false}) {

    if (this.validation) {
      if (!this.enabled) throw new Error("WebMidi is not enabled.");
      if (!id) return;
    }

    if (options.disconnected) {
      for (let i = 0; i < this._disconnectedOutputs.length; i++) {
        if (this._disconnectedOutputs[i].id === id.toString()) return this._disconnectedOutputs[i];
      }
    } else {
      for (let i = 0; i < this.outputs.length; i++) {
        if (this.outputs[i].id === id.toString()) return this.outputs[i];
      }
    }

  }
Returns the [`Output`](Output) object that matches the specified ID string or `false` if no
matching output is found. As per the Web MIDI API specification, IDs are strings (not
integers).

Please note that IDs change from one host to another. For example, Chrome does not use the same
kind of IDs as Jazz-Plugin.

@param id {string} The ID string of the port. IDs can be viewed by looking at the
[`WebMidi.outputs`](WebMidi#outputs) array.
@param [options] {object}
@param [options.disconnected] {boolean} Whether to retrieve a disconnected output

@returns {Output} An [`Output`](Output) object matching the specified ID string. If no
matching output can be found, the method returns `undefined`.

@throws {Error} WebMidi is not enabled.

@since 2.0.0