while now but never came across such syntax shown in the ss above..... is it valid? and if yes what is it for?
that's typescript, it asserts that the returned value is not null or undefined
oooo, and what if the value IS null?
typescript will compile your code as if the value is not null, if at runtime it happens to be null, it'll just flow through the rest of the code that may assume it's not null
oo great.... m gonna have to implement it myself for in-depth concept clearance thnx mate
Then that's a type hole
Обсуждают сегодня