Zolf
asked on
Angular - Check JSON object is empty or not
Hi there,
I want to check if the JSON object returned from server is empty or not. I tried something like this but it does not work
I want to check if the JSON object returned from server is empty or not. I tried something like this but it does not work
if(response)
{
console.log("response", response);
}
else
{
console.log("response Empty");
}
The response looks like so,SERVER RESPONSE: {}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window