Pretty simple question. I have some assumptions why this doesn't work, but would like a more scholarly explanation.
This works:
newArray = oldArray.map(function(obj){
return {'key': 'value'};
});
While this doesn't:
newArray = oldArray.map(function(obj){
return {obj.key: obj.value};
});