Is there a formal method for testing an Object (response from server) to see if it is empty?
Currently, I am using jQuery to accomplish this.
this.http.post(url, data, {headers: headers}).then(
result =>
{
if (!$.isEmptyObject(result)) {
-- run code here --
}else{
-- log warning --
}
}
I believe that my current approach is not conventional and would like to explore a typescript-only solution.
Thank you.