is-type-of
Advanced tools
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 @@ |
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
3032
4
43
80