title: SweetAlert2 add dynamic options to select input
body: <p>I want to add dynamic options to a <a href="https://sweetalert2.github.io/" rel="noreferrer">SweetAlert2</a> input type select that looks like this:</p>
  
  <pre><code>swal({
  title: 'Select Ukraine',
  input: 'select',
  inputOptions: {
    'SRB': 'Serbia',
    'UKR': 'Ukraine',
    'HRV': 'Croatia'
  },
  inputPlaceholder: 'Select country',
  showCancelButton: true,
  inputValidator: function(value) {
    return new Promise(function(resolve, reject) {
      if (value === 'UKR') {
        resolve();
      } else {
        reject('You need to select Ukraine :)');
      }
    });
  }
  }).then(function(result) {
    swal({
      type: 'success',
      html: 'You selected: ' + result
    });
  })
  </code></pre>
  
  <p>Instead of those 3 countries I want to add my own options which are saved in an object. How can I do that using javascript?</p>