UNPKG
@twilio-paste/paste-reakit-fork
Version:
latest (1.4.1)
1.4.1
Forked Reakit that addresses SSR hydration issues
twilio-labs/paste-reakit
@twilio-paste/paste-reakit-fork
/
src
/
Composite
/
__utils
/
getMaxLength.ts
12 lines
(10 loc)
•
224 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
Item
}
from
"./types"
;
export
function
getMaxLength
(
rows: Item[][]
) {
let
maxLength =
0
;
for
(
const
{ length }
of
rows) {
if
(length > maxLength) { maxLength = length; } }
return
maxLength; }