come si fa a verificare se un vettore è vuoto in javascript ?

if ("vector is empty") {

...

}

grazie, ciao