how to check for a condition that is empty object in javascript code example
Example: javascript check empty object
function isEmptyObject(obj) {
return !Object.keys(obj).length;
}
function isEmptyObject(obj) {
return !Object.keys(obj).length;
}