Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis.Learn more
Socket
Socket

merge-descriptors

Package Overview
Dependencies
0
Maintainers
19
Versions
4
Issues
File Explorer

Advanced tools

merge-descriptors

Merge objects using descriptors

    1.0.1latest
    GitHub
    npm

Version published
Maintainers
19
Weekly downloads
23,664,967
decreased by-7.83%

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 installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
Socket SOC 2 Logo

Product

  • Package Issues
  • 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