Introduction
Take a look at the following piece of code. What’s wrong with it?
myAwesomeFunction = (objects) ->
isGreat = false
for item in objects
if not item.isImportant
continue
if item.isGreat
isGreat = true
break
return isGreat
Does it go through all the items? No but, man, is that…