extend

Function

Extends the target object with props from the source object, overwriting identically named props in target with those from source, ignoring null and undefined values; similar to $.extend. Performs a deep extend by default, unless deep = false is passed as the third arg.

  • extend(target: [key: string]: any , source: [key: string]: any , deep: boolean) : [key: string]: any

Parameters

Parameter Type Default Notes
target Required [key: string]: any

the object that will take props from source

source Required [key: string]: any

the object from which to take props

deep Optional boolean true

whether or not to perform a deep (recursive) extend of source

Returns

[key: string]: any

Function defined in packages/common/src/util.ts:334