utils.js 394 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.enumToMap = void 0;
  4. function enumToMap(obj) {
  5. const res = {};
  6. Object.keys(obj).forEach((key) => {
  7. const value = obj[key];
  8. if (typeof value === 'number') {
  9. res[key] = value;
  10. }
  11. });
  12. return res;
  13. }
  14. exports.enumToMap = enumToMap;
  15. //# sourceMappingURL=utils.js.map