New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mix2

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mix2 - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

index.js

@@ -13,3 +13,3 @@ 'use strict';

or = or || or === undefined;
or = or || arguments.length === 2;

@@ -16,0 +16,0 @@ if (cl && (len = cl.length)) {

{
"name": "mix2",
"version": "0.1.1",
"version": "0.1.2",
"description": "The YUI mix",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -14,8 +14,25 @@ # mix2 [![NPM version](https://badge.fury.io/js/mix2.svg)](http://badge.fury.io/js/mix2) [![Build Status](https://travis-ci.org/kaelzhang/node-mix2.svg?branch=master)](https://travis-ci.org/kaelzhang/node-mix2) [![Dependency Status](https://gemnasium.com/kaelzhang/node-mix2.svg)](https://gemnasium.com/kaelzhang/node-mix2)

```js
var mix2 = require('mix2');
var mix = require('mix2');
var a = {a: 1};
var b = {b: 2};
var c = {a: 10, b: 20, c: 30}
mix(a, b);
a; // {a: 1, b: 2}
mix({a: 1}, c, false); // {a: 1, b: 20, c: 30}
mix({a: 1}, c, true, ['a', 'c']); // {a: 10, c: 30}
```
## Licence
### mix(receiver, supplier, override, copylist)
- receiver `Object`
- supplier `Object`
- override `Boolean=true` Whether should override the existing property of `receiver`. Default to overriding
- copylist `(Array.<String>)=` If specified, only mix the specific keys in the array.
Extend the object `receiver` with `supplier`, and returns `receiver`.
## License
MIT
<!-- do not want to make nodeinit to complicated, you can edit this whenever you want. -->
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc