Edit this page

up.util up.util.merge(sources...)
JavaScript function

Creates a new object by merging together the properties from the given objects.

Example

let a = { a: '1', b: '2' }
let b = { b: '3', c: '4' }
up.util.merge(a, b) // => { a: '1', b: '3', c: '4' }

Parameters

sources... Array<Object>

Return value

Object