npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

qb-assign

1.0.1 • Public • Published

qb-assign

npm downloads dependencies dev dependencies code analysis

A tiny Object.assign implementation that works down to IE9

Object.assign support is still just shy of healthy (no IE, > Chrome 45), so this tiny implementation uses Object.keys() which has broader support (> IE9, > Chrome 5). Using Object.keys() reduces the code and skips prototypes which is a bit sleeker than for..in.

Complies with the 100% test coverage and minimum dependency requirements of qb-standard .

Install

npm install qb-assign

Usage

Same api as Object.assign

var assign = require('qb-assign')

var opt = assign( {a: 1, b: 2}, {a: 7, c: 3} )
console.log(opt) 

> { a: 7, b: 2, c: 3 }

install

npm i qb-assign

Downloadsweekly downloads

5

version

1.0.1

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability