@lvchengbin/is
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -182,2 +182,6 @@ (function (global, factory) { | ||
var isClass = (function (obj) { | ||
return isFunction(obj) && /^\s*class\s+/.test(obj.toString()); | ||
}); | ||
var is = { | ||
@@ -209,3 +213,4 @@ arguments: isArguments, | ||
elementNode: elementNode, | ||
window: isWindow | ||
window: isWindow, | ||
class: isClass | ||
}; | ||
@@ -212,0 +217,0 @@ |
@@ -129,2 +129,4 @@ 'use strict'; | ||
var isClass = obj => isFunction( obj ) && /^\s*class\s+/.test( obj.toString() ); | ||
var is = { | ||
@@ -156,5 +158,6 @@ arguments : isArguments, | ||
elementNode, | ||
window : isWindow | ||
window : isWindow, | ||
class : isClass | ||
}; | ||
module.exports = is; |
@@ -133,2 +133,4 @@ (function (global, factory) { | ||
var isClass = obj => isFunction( obj ) && /^\s*class\s+/.test( obj.toString() ); | ||
var is = { | ||
@@ -160,3 +162,4 @@ arguments : isArguments, | ||
elementNode, | ||
window : isWindow | ||
window : isWindow, | ||
class : isClass | ||
}; | ||
@@ -163,0 +166,0 @@ |
{ | ||
"name": "@lvchengbin/is", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "A library, which is possible to be imported as ES6 module separately, for checking the type of a value.", | ||
@@ -5,0 +5,0 @@ "keywords": "is check types es6", |
@@ -27,2 +27,3 @@ import isArguments from './arguments'; | ||
import isWindow from './window'; | ||
import isClass from './class'; | ||
@@ -55,3 +56,4 @@ export default { | ||
elementNode, | ||
window : isWindow | ||
window : isWindow, | ||
class : isClass | ||
}; |
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
29053
40
643