UNPKG
@qian_cheng/demo-common
Version:
latest (1.1.1)
1.1.1
vue json schema form demo公共代码
@qian_cheng/demo-common
/
utils
/
obj.js
13 lines
(11 loc)
•
259 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** * Created by Liu.Jun on 2020/11/22 9:48 下午. */
export
function
isEmptyObject
(
obj
) {
for
(
const
key
in
obj) {
if
(
Object
.
prototype
.
hasOwnProperty
.
call
(obj, key)) {
return
false
; } }
return
true
; }