Working with Checkboxes, Radio Buttons, and Dropdowns

What purpose does this pattern serve in form handling?
const options = select.options;
const array = Array.from(options, opt => ({
  value: opt.value,
  text: opt.text,
  selected: opt.selected,
  dataset: {...opt.dataset}
}));
Next Question (15/22)