Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Check if value is array

Method 1: Using the isArray method
Array.isArray(variableName)'

Method 2:
variable instanceof Array

Method 3:
variable.constructor === Array
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #Check #array
ADD COMMENT
Topic
Name
8+1 =