code: function formatInputOptions(inputOptions) {
    var result = [];
  
    if (typeof Map !== 'undefined' && inputOptions instanceof Map) {
      inputOptions.forEach(function (value, key) {
        result.push([key, value]);
      });
    } else {
      Object.keys(inputOptions).forEach(function (key) {
        result.push([key, inputOptions[key]]);
      });
    }
  
    return result;
  }
docs: Converts `inputOptions` into an array of `[value, label]`s
  @param inputOptions