tetris/js/utils.js

3 lines
106 B
JavaScript

function inArray(x, y, array){
return x >= 0 && x < array[0].length && y >= 0 && y < array.length;
}