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
Minimal version (es6):
Object.entries(obj).reduce((a, [k, v]) => (a[k] = v * v, a), {})