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

Function enumToMap

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected