UNPKG
aureooms-js-type
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.1.0
0.0.1
type checking code bricks for JavaScript
aureooms.github.io/js-type/
aureooms/js-type
aureooms-js-type
/
js
/
src
/
isinstance.js
12 lines
(6 loc)
•
190 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
var
isinstance =
function
(
type
, obj
) {
return
obj !==
null
&& obj !==
undefined
&& obj.
constructor
.
prototype
===
type
.
prototype
; };
exports
.
isinstance
= isinstance;