Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How can I check if an object is an array

In modern browsers you can do:

Array.isArray(obj)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #I #check #object #array
ADD COMMENT
Topic
Name
7+3 =