Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

type-util

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-util - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc