19 lines
307 B
JavaScript
19 lines
307 B
JavaScript
import {Table} from './table.ts';
|
|
var table;
|
|
var leaves;
|
|
var rows;
|
|
|
|
rows = [
|
|
["a","1"],
|
|
["b","2"],
|
|
["a","3"],
|
|
["b","1"],
|
|
["a","2"],
|
|
["b","3"],
|
|
];
|
|
|
|
table = new Table("Root", rows);
|
|
table.PivotTree([0, 1]);
|
|
table.ItrLeaves( inLeaf => console.log(inLeaf) );
|
|
|
|
console.log(table, leaves); |