Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if array

// Check if something is an Array 
// just like you do with "typeof"
Array.isArray([1, 2, 3]);	// true
Array.isArray('asdf');		// false
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #array
ADD COMMENT
Topic
Name
6+3 =