Create a transformation of a object by recursively applying a function to it. Could be called deepMap.

transform(object, func, ...)

Arguments

object

The object to map over

func

The function to apply to each object

...

Additional arguments to pass through to the function