UNPKG
@ekb1zh/type
Version:
latest (5.0.1)
5.0.1
5.0.0
4.0.3
4.0.2
4.0.1
3.0.2
3.0.1
3.0.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.0
Simple tool for getting data type
github.com/ekb1zh/type
ekb1zh/type
@ekb1zh/type
/
dist
/
type.esm.js
13 lines
(10 loc)
•
253 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
typeOf =
function
typeOf
(
value
) {
var
type
=
typeof
value;
if
(
type
===
'object'
) {
return
!value ?
'null'
:
Array
.
isArray
(value) ?
'array'
:
type
; }
else
{
return
type
; } };
export
{ typeOf };
//# sourceMappingURL=type.esm.js.map