transform
Applies a function against an accumulator and each key in the object (from left to right).
- Use
Object.keys()
to iterate over each key in the object. - Use
Array.prototype.reduce()
to apply the specified function against the given accumulator.