This is a very normal #JavaScript program, and it's great that this just works without complaint.

#webdev #wtfnjs

@sir_pepe I went to check how my IDE handles it, and it catches it as an error (empty `if` branch), which is what I expected. But I got fooled with the screenshot at first.
@Krazov That's TypeScript at work. It's a perfectly valid plain JS program.
@sir_pepe Yes, I know it's valid JS. But it got me thinking about how realistic it is to smuggle such a thing to a codebase. In my case, Prettier additionally moved it to separate lines.
@Krazov I've seen enough monstrous JS codebases with zero modern tooling, especially in enterprise contexts. If this looks like it's hard to smuggle in, that's just a skill issue in the target selection department 🙃