1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | function 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 |
|
18 | exports.default = countRowSpan; |
\ | No newline at end of file |