UNPKG

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