Select/deselect all options in a dynamically created ion-select

Here’s the strange thing. Looking back, that’s essentially what I was doing but 2 things popped up.

  1. No option to choose checked is available, so I must use selected as opposed to checked
  2. Referencing the selected property did not effect the options.

My use case is to present the select with all options unchecked. This seems to have no effect

openSelect(select: Select) {
 select.open();
 select.options.map((array) => {
   array.selected = false;
 })
 }

This, however, presents with the intended result

openSelect(select: Select) {
 let myOverlay: Overlay;
 select.open();
 myOverlay = select._overlay;
 let selectInputs = myOverlay['data']['inputs'];
   selectInputs.map((array) => {
     array.checked = false;
   })
 }