DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+9 =
Submit