Variables
assign()
constassign: <T,U>(target,source) =>T&U<T,U,V>(target,source1,source2) =>T&U&V<T,U,V,W>(target,source1,source2,source3) =>T&U&V&W(target, ...sources) =>any=Object.assign
Object.assign
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
Type Parameters
| Type Parameter |
|---|
T extends object |
U |
Parameters
| Parameter | Type | Description |
|---|---|---|
target | T | The target object to copy to. |
source | U | The source object from which to copy properties. |
Returns
T & U
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
Type Parameters
| Type Parameter |
|---|
T extends object |
U |
V |
Parameters
| Parameter | Type | Description |
|---|---|---|
target | T | The target object to copy to. |
source1 | U | The first source object from which to copy properties. |
source2 | V | The second source object from which to copy properties. |
Returns
T & U & V
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
Type Parameters
| Type Parameter |
|---|
T extends object |
U |
V |
W |
Parameters
| Parameter | Type | Description |
|---|---|---|
target | T | The target object to copy to. |
source1 | U | The first source object from which to copy properties. |
source2 | V | The second source object from which to copy properties. |
source3 | W | The third source object from which to copy properties. |
Returns
T & U & V & W
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
Parameters
| Parameter | Type | Description |
|---|---|---|
target | object | The target object to copy to. |
...sources | any[] | One or more source objects from which to copy properties |
Returns
any