UNPKG

reakit

Version:

Toolkit for building accessible rich web apps with React

12 lines (10 loc) 224 B
import { Item } from "./types"; export function getMaxLength(rows: Item[][]) { let maxLength = 0; for (const { length } of rows) { if (length > maxLength) { maxLength = length; } } return maxLength; }