dry-underscore
Advanced tools
Comparing version 0.23.0 to 0.23.1
@@ -155,2 +155,3 @@ "use strict"; | ||
_.undef = function(x){ return(x === undefined); }; | ||
_.defined = function(x){ return(x !== undefined); }; | ||
_.date = function(ts){ | ||
@@ -157,0 +158,0 @@ if(_.isNumber(ts)){ |
@@ -227,2 +227,13 @@ "use strict"; | ||
test("defined", function(){ | ||
eq(false, _.defined()); | ||
eq(false, _.defined(undefined)); | ||
eq(true, _.defined(null)); | ||
eq(true, _.defined(0)); | ||
eq(true, _.defined("abc")); | ||
eq(true, _.defined(2)); | ||
eq(true, _.defined({})); | ||
}); | ||
test("s", function(){ | ||
@@ -229,0 +240,0 @@ eq("", _.s()); |
{ | ||
"name": "dry-underscore", | ||
"version": "0.23.0", | ||
"version": "0.23.1", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "deep-diff": { |
{ | ||
"name": "dry-underscore", | ||
"version": "0.23.0", | ||
"version": "0.23.1", | ||
"main": "./index/node.index.js", | ||
@@ -5,0 +5,0 @@ "description": "The DRY Underscore Library", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1927095
23472