3 ms·
if (array && !array.length) { /* do something here */ } Check existence as well, this also works for a jQuery selection.
by nijiko 12y ago
if (array && !array.length) { /* do something here */ }
Check existence as well, this also works for a jQuery selection.