Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

isdefined

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

isdefined - npm Package Compare versions

Comparing version 0.0.4 to 0.1.0

9

index.js

@@ -10,2 +10,11 @@ var defined = {};

return typeof v !== 'undefined';
};
/**
* Return whether variable is defined and not null
* @param v
* @returns {boolean}
*/
defined.has_value = function(v) {
return v !== null && typeof v !== null;
}

@@ -12,0 +21,0 @@

7

package.json
{
"name": "isdefined",
"version": "0.0.4",
"description": "Checks a given object property is defined",
"version": "0.1.0",
"description": "Utilities for working with undefined properties",
"main": "index.js",

@@ -13,3 +13,4 @@ "scripts": {

"undefined",
"defined"
"defined",
"Utilities"
],

@@ -16,0 +17,0 @@ "author": "John Brett",

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