javascript how to check for an empty object
snippet in javascript

javascript how to check for an empty object

user2705

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