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