JavaScript Periksa Properti Kosong

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