I tried to do this, but it doesn't work. Any help is appreciated thanks!
export class OuterClass {
let isEffectiveUrl = (url:string) => {
let tmpRes:boolean
this.http.get(url).subscribe((result) => {
tmpRes = Object.keys(result).length > 0;
});
return tmpRes;
}
}