yow
Advanced tools
Comparing version 1.0.45 to 1.0.46
@@ -18,3 +18,3 @@ var isType = module.exports.isType = function(obj, type) { | ||
module.exports.isDate = function(obj) { | ||
return isType(obj, 'Date'); | ||
return isType(obj, 'Date') && !isNaN(obj.getTime()); | ||
}; | ||
@@ -37,2 +37,1 @@ | ||
} | ||
{ | ||
"name": "yow", | ||
"version": "1.0.45", | ||
"version": "1.0.46", | ||
"description": "You Only Wish module", | ||
@@ -5,0 +5,0 @@ "main": "yow.js", |
@@ -50,3 +50,3 @@ # Yow | ||
- **isString(object)** - Is object a **String** object? | ||
- **isDate(object)** - Is object a **Date** object? | ||
- **isDate(object)** - Is object a **Date** object (and contains a valid date)? | ||
- **isFunction(object)** - Is object a **function** object? | ||
@@ -53,0 +53,0 @@ - **isObject(object)** - Is object an object? BTW **null** is not an object. |
16485
15
403