7 lines
No EOL
137 B
JavaScript
7 lines
No EOL
137 B
JavaScript
function isEmpty(obj) {
|
|
for (let key in obj) {
|
|
// if the loop has started, there is a prorty
|
|
return false;
|
|
}
|
|
return true;
|
|
} |