Socket
Socket
Sign inDemoInstall

type-util

Package Overview
Dependencies
28
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.3 to 0.1.4

2

lib/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc