Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check if array is not empty

if (array === undefined || array.length == 0) {
    // array empty or does not exist
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #check #array #empty
ADD COMMENT
Topic
Name
5+8 =