UNPKG

imma

Version:

A collection of functions for dealing with native arrays and objects immutably

9 lines (8 loc) 197 B
'use strict' const mapKeys = module.exports = (object, fn) => { const result = {} for (let key in object) { result[fn(key, object[key], object)] = object[key] } return result }