You get the position of a 1d Array with IndexOf()
How do you get the position of value of a 2d or 3d Array?
Develop games in your browser. Powerful, performant & highly capable.
You have to use For-loops and do it yourself.