1.2.1 • Published 8 years ago

@f/assign v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 years ago

assign

Build status Git tag NPM version Code style

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