MCPcopy Create free account
hub / github.com/angular/dev-infra / enumToMap

Function enumToMap

github-actions/saucelabs/set-saucelabs-env.js:2837–2846  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

2835 Object.defineProperty(exports, "__esModule", { value: true });
2836 exports.enumToMap = void 0;
2837 function enumToMap(obj) {
2838 const res = {};
2839 Object.keys(obj).forEach((key) => {
2840 const value = obj[key];
2841 if (typeof value === "number") {
2842 res[key] = value;
2843 }
2844 });
2845 return res;
2846 }
2847 exports.enumToMap = enumToMap;
2848 }
2849 });

Callers

nothing calls this directly

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected