how to check whether response json is empty or not javascript code example
Example: javascript check if object is empty
function isObjectEmpty(obj) {
return Object.keys(obj).length === 0;
}
function isObjectEmpty(obj) {
return Object.keys(obj).length === 0;
}