javascript - JS validate custom rule for checking array not empty? -


i have array called filequeue.

    var filequeue = []; 

how can write custom rule js validate check in array?

thanks

if(filequeue.length == 0)   //empty else   //non-empty 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

ruby - Nesting modules inside of a Rails eninge gem -

Eclipse formatter for java ending braces -