@micro-js/assign
v1.0.0
Published
Assign properties from source to target.
Readme
assign
Assign properties from source to target.
Installation
$ npm install @micro-js/assignUsage
var assign = require('@micro-js/assign')
var target = {a: 1}
var source1 = {b: 2}
var source2 = {c: 3}
assign(target, source1, source2) // => {a: 1, b: 2, c: 3}API
assign(target, source)
target- target to copy properties tosource- source of properties
Returns: target
License
MIT
