Given this code:
let arr = await fetch(...).then(r => r.json());
for(let [a, b] of arr) {
console.log(a, b);
}
What could cause the cryptic/unhelpful error message .for is not iterable in Chromium/Node.js? On Firefox the error message is instead Uncaught TypeError: arr[Symbol.iterator]().next().value is not iterable.
This confused me for a few minutes so I figure until they make these error messages more friendly it'd be helpful to have an SO question/answer for it. See answer below.