Hello. Recently, I decided to temporarily take a break from the frontend certification projects, and work on smth else.
I settled on the game of life, and it has been going well, except for one thing.
Occasionally, when attempting to read the neighbors of a cell, it outputs the following error into the console:
Uncaught TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
I have no idea what makes this happen, as I’ve even implemented some ternaries to try to get rid of undefined values, but it was no use
As far as I’m aware, the following cells are affected:
The project is down below: