function mapValues( obj, transform ) {
	var out;
	var key;
	if ( typeof obj !== 'object' || obj === null ) {
		throw new TypeError( format( 'invalid argument. First argument must be an object. Value: `%s`.', obj ) );
	}
	if ( !isFunction( transform ) ) {
		throw new TypeError( format( 'invalid argument. Second argument must be a function. Value: `%s`.', transform ) );
	}
	out = {};
	for ( key in obj ) {
		if ( hasOwnProp( obj, key ) ) {
			out[ key ] = transform( obj[ key ], key, obj );
		}
	}
	return out;
}
Maps values from one object to a new object having the same keys.

## Notes

-   Iteration order is **not** guaranteed.
-   The function only operates on own properties, not inherited properties.

@param {Object} obj - source object
@param {Function} transform - transform function
@throws {TypeError} first argument must be an object
@throws {TypeError} second argument must be a function
@returns {Object} new object

@example
function transform( value, key ) {
    return key + value;
}

var obj1 = {
    'a': 1,
    'b': 2
};

var obj2 = mapValues( obj1, transform );
// returns { 'a': 'a1', 'b': 'b2' }