Socket
Socket
Sign inDemoInstall

has-value

Package Overview
Dependencies
4
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

2

index.js

@@ -14,3 +14,3 @@ /*!

module.exports = function(obj, path, options) {
if (isObject(obj) && typeof path === 'string' || Array.isArray(path)) {
if (isObject(obj) && (typeof path === 'string' || Array.isArray(path))) {
return has(get(obj, path, options));

@@ -17,0 +17,0 @@ }

{
"name": "has-value",
"description": "Returns true if a value exists, false if empty. Works with deeply nested values using object paths.",
"version": "2.0.0",
"version": "2.0.1",
"homepage": "https://github.com/jonschlinkert/has-value",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

SocketSocket SOC 2 Logo

Product

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