UNPKG
@interaction/eagle
Version:
latest (0.0.7)
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
JavaScript library
github.com/Iecy/eagle
Iecy/eagle
@interaction/eagle
/
src
/
type.js
5 lines
(4 loc)
•
171 B
JavaScript
View Raw
1
2
3
4
5
var
type
=
function
(
val
) {
return
val ===
null
?
'Null'
: val ===
undefined
?
'Undefined'
:
Object
.
prototype
.
toString
.
call
(val).
slice
(
8
, -
1
); };
module
.
exports
=
type
;