UNPKG

vcc-ui

Version:

VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.

19 lines (16 loc) 383 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.objectMap = void 0; var objectMap = function objectMap(fn) { return function (obj) { var mappedObj = {}; Object.keys(obj).map(function (key) { var value = obj[key]; mappedObj[key] = fn(value, key, obj); }); return mappedObj; }; }; exports.objectMap = objectMap;