function createOptionList (optionData) {
  if (!optionData) {
    return []
  }
  const options = Array.isArray(optionData) ? optionData : Object.keys(optionData).map(value => ({ label: optionData[value], value }))
  return options.map(createOption.bind(this))
}
Given an object or array of options, create an array of objects with label,
value, and id.
@param {array|object}
@return {array}