how to check if javascript object with certain key is empty code example
Example: how to check if object is empty javascript
function isEmptyObject(obj) {
return !Object.keys(obj).length;
}
function isEmptyObject(obj) {
return !Object.keys(obj).length;
}