Skip to content

The open alternative to Salesforce, designed for AI.

230 B
Raw Blame
export type CellCoordinate = {
  col: number;
  row: number;
};

export const parseCellIdToCoordinates = (cellId: string): CellCoordinate => {
  const [col, row] = cellId.split('-').slice(1).map(Number);
  return { col, row };
};