redux-token-auth/dist/services/utility.js

12 lines
370 B
JavaScript
Raw Normal View History

2017-09-16 03:26:52 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
2020-07-26 06:03:01 +00:00
exports.invertMapKeysAndValues = void 0;
2017-09-16 03:26:52 +00:00
exports.invertMapKeysAndValues = function (stringMap) {
var newStringMap = {};
for (var key in stringMap) {
var val = stringMap[key];
newStringMap[val] = key;
}
return newStringMap;
};
//# sourceMappingURL=utility.js.map