16 lines
287 B
JavaScript
16 lines
287 B
JavaScript
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = isObjectEmpty;
|
|
function isObjectEmpty(object) {
|
|
if (object == null) {
|
|
return true;
|
|
}
|
|
// eslint-disable-next-line
|
|
for (const _ in object) {
|
|
return false;
|
|
}
|
|
return true;
|
|
} |