0
How to remake function getEmpty() with es6? This function should return x and y of the first cell with 0. The main idea to make function getEmpty() smaller if it's possible.
Source code:
map = [
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
[1, 0, 0, 0, 0, 0, 0, 0, 0, 1],
[1, 0, 0, 0, 0, 0, 0, 0,...