UNPKG
react-ui-component
Version:
latest (2.0.3)
2.0.3
2.0.2
2.0.1
2.0.0
1.3.1
1.3.0
1.2.23
1.2.22
1.2.21
1.2.20
1.2.19
1.2.18
1.2.17
1.2.16
1.2.15
1.2.14
1.2.13
1.2.12
1.2.11
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.1.2
0.1.1
0.1.0
0.0.98
0.0.97
0.0.96
0.0.95
0.0.93
0.0.92
0.0.91
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
some component build with ReactJs
github.com/jerryshew/react-component
jerryshew/react-component
react-ui-component
/
component
/
util
/
typeCheck.js
7 lines
(6 loc)
•
137 B
JavaScript
View Raw
1
2
3
4
5
6
7
function
isType
(
obj, typeStr
){
return
Object
.
prototype
.
toString
.
call
(obj).
slice
(
8
, -
1
) === typeStr }
module
.
exports
= { isType }