Need to run the same check on every item in an array? `forEach` calls a callback for each assigned element, skipping unassigned index positions. It offers callback-based iteration without writing a loop. section 10.1.4
Check each value
`const names = ["Yagyu", "Kuma", "Hattori"]; names.forEach((name) => { console.assert(name !== null); });` The callback performs a check for each name; its return value is not used. section 10.1.4
Choose a `for` or `for…of` loop if you need to stop early with `break` or wait between iterations with `await`. `forEach` cannot stop because its callback returns, and an async callback does not make it wait for each promise to settle. It is most handy when reusing a callback across arrays; otherwise, `for…of` is often the simpler choice. section 10.1.4

