kvz/phpjs — pull request #162 by beardedlinuxgeek (2014-04-23 04:45:24+00:00)
Title: Check for NaN in empty().

Before:
var x = 0/0;
empty(x); // returns false

I think NaN is the only object with a typeof "number" that also returns true for isNaN(). So I added that check.