lib/helpers.js
function mapValues (object, map) {
  return Object.keys(object).reduce((clone, key) =>
    Object.assign(clone, { [key]: map(object[key], key) }), {})
}
function mapValues (object, map) {
  return Object.keys(object).reduce((clone, key) =>
    Object.assign(clone, { [key]: map(object[key], key) }), {})
}
function mapValues ( object , map ) { return Object . keys ( object ) . reduce ( ( clone , key ) => Object . assign ( clone , { [ key ] : map ( object [ key ] , key ) } ) , { } ) }
Create a new object with different key values.

@param {Object} object
@param {Function} map should return the first argument, which is the value
@return {Object}
Create a new object with different key values .