Null-checking in JavaScript


In today's edition of Adventures in Legacy Code, I came across the following:

...
Tags: beginners, discuss, refactorit