Home > @jsplumbtoolkit/browser-ui > extend
extend() function
Equivalent of Object.assign, which IE11 does not support.
Signature:
export declare function extend<T>(o1: T, o2: T, keys?: string[]): T;
Parameters
Parameter | Type | Description |
---|---|---|
o1 | T | |
o2 | T | |
keys | string[] | Optional list of keys to use to copy values from o2 to o1 . If this is not provided, all values are copied. |
Returns:
T