Similar to map for arrays, this creates a new object by calling the callback on each property of the original object.