Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript not empty array not string

if (Array.isArray(array) && array.length) {
    // array exists and is not empty
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #empty #array #string
ADD COMMENT
Topic
Name
4+9 =