JavaScript prüfen leere Eigenschaft

function isObjectEmpty(obj) {
    return Object.keys(obj).length === 0;
}
Grepper