assign
Assign properties from source to target.
Installation
$ npm install @f/assign
Usage
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 to -
source
- source of properties
Returns: target
License
MIT