Socket
Socket
Sign inDemoInstall

object-lib

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-lib - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

lib/core/contain.js

9

lib/index.js
"use strict";
module.exports = (a, b) => a + b;
const align = require('./core/align');
const contain = require('./core/contain');
module.exports = {
align,
contain
};

2

package.json
{
"name": "object-lib",
"version": "1.1.0",
"version": "1.2.0",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "repository": {

@@ -23,4 +23,6 @@ # object-lib

_Example:_
<!-- eslint-disable no-undef -->
<!-- eslint-disable import/no-unresolved -->
```js
const { align } = require('object-lib');
const obj = { k1: 1, k2: 2 };

@@ -32,1 +34,15 @@ const ref = { k2: null, k1: null };

```
### contain(tree: Object, subtree: Object)
_Example:_
<!-- eslint-disable import/no-unresolved -->
```js
const { contain } = require('object-lib');
contain({ a: [1, 2], b: 'c' }, { a: [1, 2] });
// => true
contain({ a: [1, 2], b: 'c' }, { a: [1] });
// => false
```
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