@f/assign

1.2.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @f/assign

Weekly Downloads

1

Version

1.2.1

License

MIT

Last publish

Collaborators

  • f