-1

I encountered !! in some places . I do not know what that is. for example :

return this.http.get('url')
           .pipe(item=> !!item);

1 Answers1

0

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.

Veselin Davidov
  • 6,886
  • 1
  • 13
  • 21