1 | ;
|
2 | exports.__esModule = true;
|
3 | var group_to_map_1 = require("./group-to-map");
|
4 | exports["default"] = (function (data, condition) {
|
5 | if (!condition) {
|
6 | // 没有条件,则自身改成数组
|
7 | return [data];
|
8 | }
|
9 | var groups = group_to_map_1["default"](data, condition);
|
10 | var array = [];
|
11 | for (var i in groups) {
|
12 | array.push(groups[i]);
|
13 | }
|
14 | return array;
|
15 | });
|
16 | //# sourceMappingURL=group.js.map |
\ | No newline at end of file |