@illlia/css-merge
Version:
css-merge is a tiny package to compose css classes on the 'last class wins' basis
13 lines (12 loc) • 328 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapValues = void 0;
const mapValues = (obj, map) => {
const mapped = {};
const keys = Object.keys(obj);
keys.forEach((key) => {
mapped[key] = map(obj[key], key);
});
return mapped;
};
exports.mapValues = mapValues;