UNPKG

@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
"use strict"; 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;