UNPKG

379 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6function countRowSpan(columns) {
7 var maximumCount = 0;
8
9 columns.forEach(function (column) {
10 if (column.children && column.children.length) {
11 maximumCount = Math.max(maximumCount, countRowSpan(column.children));
12 }
13 });
14
15 return maximumCount + 1;
16}
17
18exports.default = countRowSpan;
\No newline at end of file