Returns a copy of object, with the same properties. For each property
that has a basic value (string, number, boolean, object), the value is set
for the return object. If the property is a function or generator, its value
is used instead. Async functions and generators are also usable.
Returns a copy of
object
, with the same properties. For each property that has a basic value (string, number, boolean, object), the value is set for the return object. If the property is a function or generator, its value is used instead. Async functions and generators are also usable.Use resolveFieldsSync for a synchronous version.
Not recursive.
In the below example, the function for the property
random
is invoked.It also works with generators