javascript check empty property
snippet in javascript

javascript check empty property

user4672

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