demo/load-event/custom.js
function map(obj, callback){
    var result = {};
    Object.keys(obj).forEach(function(key){
        result[key] = callback.call(obj, obj[key], key, obj);
    });
    return result;
}
function map(obj, callback){
    var result = {};
    Object.keys(obj).forEach(function(key){
        result[key] = callback.call(obj, obj[key], key, obj);
    });
    return result;
}
function map ( obj , callback ) { var result = { } ; Object . keys ( obj ) . forEach ( function ( key ) { result [ key ] = callback . call ( obj , obj [ key ] , key , obj ) ; } ) ; return result ; }
Map for Objects

@param  Object
@return Object
Map for Objects