Now on Omarchy: read the manual without leaving your desktop
Your code JavaScript
// This prints the wrong product ids and never errors. Find out why, then fix toIds.
function toIds(values) {
  return values.map(parseInt);
}

const selected = ["4", "8", "11", "2"];
console.log("Comparing products: " + toIds(selected).join(", "));