1.2.1 • Published 10 years ago
@f/assign v1.2.1
assign
Assign properties from source to target.
Installation
$ npm install @f/assignUsage
var assign = require('@f/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