Comparing version 0.1.3 to 0.1.4
@@ -11,3 +11,3 @@ var _ = require('lodash'); | ||
methods._isDate = function(data){ | ||
return methods._type(data) =='[object Date]' ? true : new Date(data).toString() == 'Invalid Date' ? false : methods._type(new Date(data)) == '[object Date]' ? true : false; | ||
return methods._type(data) =='[object Date]' ? true : (new Date(data).toString() == 'Invalid Date') ? false : methods._type(data) != '[object Number]' && methods._type(new Date(data)) == '[object Date]' ? true : false; | ||
}; | ||
@@ -14,0 +14,0 @@ methods._isInt = function(data){ |
{ | ||
"name": "type-util", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "This module provides the functionality to perfrom the basic operations on strings, arrays, and objects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
13249