Skip to main content

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

ParameterTypeDescription
o1T
o2T
keysstring[]Optional list of keys to use to copy values from o2 to o1. If this is not provided, all values are copied.

Returns:

T