Create a new object/array with the own properties of the first entry merged with the own properties of the others objects. If a key exists in several objects, the value from the last object will be used.
Note if first argument is array then result of function is array, otherwise it is an object.
Create a new object/array with the own properties of the first entry merged with the own properties of the others objects. If a key exists in several objects, the value from the last object will be used.
Note if first argument is array then result of function is array, otherwise it is an object.
Create a new object/array with the own properties of the first entry merged with the own properties of the others objects. If a key exists in several objects, the value from the last object will be used.
Note if first argument is array then result of function is array, otherwise it is an object.
Generated using TypeDoc
Create a new object/array with the own properties of the first entry merged with the own properties of the others objects. If a key exists in several objects, the value from the last object will be used.
Note if first argument is array then result of function is array, otherwise it is an object.
assign({a:1}, {b:2}) //=> {a:1, b:2} assign([1,2,3], [4,5]) //=> [4,5,3]