Comparing version 0.0.4 to 0.1.0
@@ -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 @@ |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2635
43