merge

fun merge(source: Any, createPropertyCallback: Function<*>? = definedExternally)(source)

Assigns each unassigned property on this object to the value of the same property on the provided source object.

Parameters

source

The object to be merged into this object.

createPropertyCallback

A function that will be called when the value of any of the properties in value are not a Property.

See also