code: function setSelectValue (elem, value) {
    var optionSet, option
    var options = elem.options
    var values = makeArray(value)
    var i = options.length
  
    while (i--) {
      option = options[ i ]
      /* eslint-disable no-cond-assign */
      if (values.indexOf(option.value) > -1) {
        option.setAttribute('selected', true)
        optionSet = true
      }
      /* eslint-enable no-cond-assign */
    }
  
    // Force browsers to behave consistently when non-matching value is set
    if (!optionSet) {
      elem.selectedIndex = -1
    }
  }
docs: Write select values
  
  @see {@link https://github.com/jquery/jquery/blob/master/src/attributes/val.js|Github}
  @param {object} Select element
  @param {string|array} Select value