New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

qb-assign

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qb-assign

A tiny Object.assign implementation that works down to IE9 (uses Object.keys)

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
5
400%
Maintainers
1
Weekly downloads
 
Created
Source

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 }

Keywords

Object.assign

FAQs

Package last updated on 17 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts