This is analogous to Object.entries(object).map(...) in Javascript. It handles both scalar and vector object types.

map(object, func, ...)

Arguments

object

The object to map over

func

The function to apply to each of the object's entries

...

Additional arguments to pass through to the function