Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
mixin-object
Advanced tools
Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.
Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.
Follow this project's author, Jon Schlinkert, for updates on this project and others.
Install with npm:
$ npm install --save mixin-object
If you only want to combine own-properties, use extend-shallow.
var mixin = require('mixin-object');
var obj = {c: 'c'};
var foo = mixin({a: 'a'}, {b: 'b'});
console.log(foo);
//=> {c: 'c', a: 'a', b: 'b'}
console.log(obj);
//=> {c: 'c'}
mixin({}, {a: 'a'}, {b: 'b'});
//=> {a: 'a', b: 'b'}
You might also be interested in these projects:
extend
but recursively copies only the missing properties/values to the target object. | homepageObject
constructor. | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
$ npm install -g verbose/verb#dev verb-generate-readme && verb
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
$ npm install && npm test
Jon Schlinkert
Copyright © 2017, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.6.0, on September 04, 2017.
FAQs
Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.
The npm package mixin-object receives a total of 1,813,740 weekly downloads. As such, mixin-object popularity was classified as popular.
We found that mixin-object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.