by bringking · 12y ago · 0 comments
if ( !array.length ) { //do something }
Seems succinct enough not to require a separate function.
Check existence as well, this also works for a jQuery selection.