UNPKG

reakit

Version:

Toolkit for building accessible rich web apps with React

8 lines (7 loc) 155 B
export function flatten<T>(grid: T[][]) { const flattened = [] as T[]; for (const row of grid) { flattened.push(...row); } return flattened; }