Also, I can't resist the opportunity to play regex golf. How did you get your numbers? Here are my searches:

    $ grep -E "typeof.*\..*==\s*[\"']undefined" apps/clock/* -r | wc -l
    12
    $ grep -E "\..*==\s*undefined" apps/clock/* -r | wc -l
    2

(I recognize this is orthogonal to our conversation.)