May I know what is the formal way of testing an Object (response from server), if it is an empty object?
Currently, my way of doing is utilising jQuery.
this.http.post(url, data, {headers: headers}).then(
result =>
{
if (!$.isEmptyObject(result)) {
-- run code here --
}else{
-- log warning --
}
}
I dun think this is orthodox and would like to find a method that uses typescript only.
Thanks.