import { Bounds , Position } from '../../model/Grid' ; export function positionIsAtVerticalEdge ( { rows } , [ , row ] ) { return rows [ 0 ] === row || rows [ 1 ] === row ; } export function positionIsAtHorizontalEdge ( { columns } , [ column ] ) { return columns [ 0 ] === column || columns [ 1 ] === column ; }