A TypeScript misunderstanding
Fortunately, I have not seen this many times. Still, it highlights a deep TypeScript misunderstanding and, even worse, a huge knowledge gap.
Have a look at this code snippet.
function myFunction(isIt: boolean) {
if (isIt === true) {
// do...
bite-sized.hashnode.dev2 min read