Currently I'm working on an Angular 4/Typescript project. Yesterday, while debugging a part of the application, I saw an operator I've never seen before:
Obviously I asked the other team members about it and they couldn't provide an answer, they just told me that it seemed to be some sort of special operator.
Today I've been googling about it withouth any success. I also checked on the Node.js console and it appears to be just as expected, a double negation that simply converts truthy to true and falsy to false. Wouln't these two statements produce the same effect?
if (x) // do something
if (!!x) // do something
Hence my question: It is actually some sort of special operator or workaround to get something done, or it's just a missconcenption of some developer?