getInputById(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._disconnectedInputs.length; i++) {
        if (this._disconnectedInputs[i].id === id.toString()) return this._disconnectedInputs[i];
      }
    } else {
      for (let i = 0; i < this.inputs.length; i++) {
        if (this.inputs[i].id === id.toString()) return this.inputs[i];
      }
    }

  }
Returns the [`Input`](Input) object that matches the specified ID string or `false` if no
matching input 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 input. IDs can be viewed by looking at the
[`WebMidi.inputs`](WebMidi#inputs) array. Even though they sometimes look like integers, IDs
are strings.
@param [options] {object}
@param [options.disconnected] {boolean} Whether to retrieve a disconnected input

@returns {Input} An [`Input`](Input) object matching the specified ID string or `undefined`
if no matching input can be found.

@throws {Error} WebMidi is not enabled.

@since 2.0.0