Socket
Socket
Sign inDemoInstall

is-type-of

Package Overview
Dependencies
1
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.1.0

10

index.js

@@ -25,12 +25,16 @@ /*!

exports.NaN = function (obj) {
return Number.isNaN(obj);
};
exports.generator = function (obj) {
return obj && 'function' == typeof obj.next && 'function' == typeof obj.throw;
return obj && 'function' === typeof obj.next && 'function' === typeof obj.throw;
};
exports.generatorFunction = function (obj) {
return obj && obj.constructor && 'GeneratorFunction' == obj.constructor.name;
return obj && obj.constructor && 'GeneratorFunction' === obj.constructor.name;
};
exports.promise = function (obj) {
return obj && 'function' == typeof obj.then;
return obj && 'function' === typeof obj.then;
};

@@ -37,0 +41,0 @@

{
"name": "is-type-of",
"version": "0.0.2",
"version": "0.1.0",
"description": "complete type checking for node",

@@ -28,3 +28,2 @@ "main": "index.js",

"autod": "^0.1.1",
"co-wait": "0.0.0",
"istanbul": "git://github.com/gotwarlost/istanbul.git#harmony",

@@ -31,0 +30,0 @@ "should": "^3.1.3",

@@ -61,2 +61,4 @@ is-type-of

#### is.NaN(NaN)
#### is.generator(gen)

@@ -63,0 +65,0 @@

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