import { Bounds , Position } from '../../model' ; export function positionIsWithinBounds ( { rows , columns } , [ column , row ] ) { const isValidColumn = columns [ 0 ] <= column && columns [ 1 ] >= column ; const isValidRow = rows [ 0 ] <= row && rows [ 1 ] >= row ; return isValidColumn && isValidRow ; }