UNPKG

440 BJavaScriptView Raw
1"use strict";
2exports.__esModule = true;
3var group_to_map_1 = require("./group-to-map");
4exports["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