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

ifonly

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ifonly - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "ifonly",
"version": "2.0.0",
"version": "2.0.1",
"description": "ifonly is function that checks if your object have only and only specific properties you passed.",

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

@@ -20,2 +20,5 @@ # ifonly

obj = { a: 'a' };
console.log(ifonly(obj, ['a', 'b'])); // false because 'b' does not exist
obj = { a: 'a', b: 'b', c: 'c' };

@@ -22,0 +25,0 @@ console.log(only(obj, ['a', 'b'], ['c'])); // true because 'c' property is ignored

Sorry, the diff of this file is not supported yet

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