I encountered !!
in some places . I do not know what that is. for example :
return this.http.get('url')
.pipe(item=> !!item);
I encountered !!
in some places . I do not know what that is. for example :
return this.http.get('url')
.pipe(item=> !!item);
This changes the type of the variable to boolean. This way undefined or null or 0 for example will become false. And if it has a value will become true.