Wow, you think an inexperienced developer wrote that piece of code?
YOU ARE WRONG!
What if condition actually can be a string or be numeric? What if you only want to account for condition to be boolean? Sure, in any different language, it might not make a difference, but this is JavaScript (see your own tags). So for me, the given code might be written by anyone and you yourself should start learning about the implicit type system of JavaScript!
To be honest, your text would mean to me that you are rather inexperienced. Other examples include flamewars about how programming language X is better than Y in every way or how a certain compiler is faster than another. In the real world, stuff like that does not matter and it's just about how well your algorithm works and how well you know the underlying structures.