Sha256: efb2deb52b7dbf97bfa9ba1432a49bdff542407b7f425b9f74e32f372a494b4f
Contents?: true
Size: 407 Bytes
Versions: 26
Compression:
Stored size: 407 Bytes
Contents
'use strict'; Object.defineProperty(exports, '__esModule', { value: true, }); exports.mapValue = mapValue; /** * Creates an object map with the same keys as `map` and values generated by * running each value of `map` thru `fn`. */ function mapValue(map, fn) { const result = Object.create(null); for (const key of Object.keys(map)) { result[key] = fn(map[key], key); } return result; }
Version data entries
26 entries across 26 versions & 1 rubygems