3 ms·
Did you know `length` is falsy? no need to compare to zero: if ($('div').length) You can even do: if ($('div')[0]) That's even shorter than using the "m
by elclanrs 14y ago
Did you know `length` is falsy? no need to compare to zero:
if ($('div').length)
You can even do:
if ($('div')[0])
That's even shorter than using the "most useful plugin ever".