marijnh/Eloquent-JavaScript — pull request #143 by zcserei (2014-11-29 23:28:20+00:00)
Title: comparing against object type

I'm no expert, but this seems to be a more elegant solution (JSLint gave me the idea)