UNPKG
@dingdaoos/lucid-utils
Version:
latest (0.0.2)
0.0.2
0.0.1
Lucid utils
github.com/DingDaoOS/Lucid
DingDaoOS/Lucid
@dingdaoos/lucid-utils
/
utils
/
type.ts
11 lines
(9 loc)
•
205 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
export
const
getType
= (
options
) => {
return
Object
.
prototype
.
toString
.
call
(options).
slice
(
8
, -
1
) }
export
const
isEmptyObj
= (
data
) => {
for
(
var
item
in
data) {
return
false
}
return
true
}