 || !o2) {
          return o1 === o2;
        }

        if (Array.isArray(o2)) {
          return o2.some((o) => o.id === o1.id);
        }

        return o1.id === o2.id;
      };

      const selectEl = document.querySelector('ion-select');
      selectEl.compareWith = compareWithFn;

      foods.forEach((option, i) => {
        const selectOption = document.createElement('ion-select-option');
        selectOption.value = option;
        selectOption.textContent = option.name;
        selectEl.appendCh