Marson,
function map(object, callback){
var obj = {};
for(var key in object) Object.assign(obj,callback(key, object[key]));
return obj
}
var obj = map({name: 'Ivan', age: 24}, function(key, value){
var result = {};
result[key+"_"] = value + "$";
return result;
})
alert(JSON.stringify(obj, null, 4));