Socket
Socket
Sign inDemoInstall

merge-descriptors

Package Overview
Dependencies
0
Maintainers
19
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    merge-descriptors

Merge objects using descriptors


Version published
Weekly downloads
22M
decreased by-18.9%
Maintainers
19
Install size
5.77 kB
Created
Weekly downloads
 

Readme

Source

Merge Descriptors

NPM Version NPM Downloads Build Status Test Coverage

Merge objects using descriptors.

var thing = {
  get name() {
    return 'jon'
  }
}

var animal = {

}

merge(animal, thing)

animal.name === 'jon'

API

merge(destination, source)

Redefines destination's descriptors with source's.

merge(destination, source, false)

Defines source's descriptors on destination if destination does not have a descriptor by the same name.

License

MIT

FAQs

Last updated on 17 Jan 2016

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc