I have an object:
myObject = { \'a\': 1, \'b\': 2, \'c\': 3 }
I am looking for a native method, similar to Array.prototype.map
Array.prototype.map
I specifically wanted to use the same function that I was using for arrays for a single object, and wanted to keep it simple. This worked for me:
var mapped = [item].map(myMapFunction).pop();