1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.convertToArray = void 0;
|
4 | /**
|
5 | * Convert Map, Set to Array
|
6 | */
|
7 | function convertToArray(val) {
|
8 | if (val instanceof Map) {
|
9 | return Array.from(val.values());
|
10 | }
|
11 | return Array.isArray(val) ? val : Array.from(val);
|
12 | }
|
13 | exports.convertToArray = convertToArray;
|
14 | //# sourceMappingURL=convert-to-array.util.js.map |
\ | No newline at end of file |