Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js check if is array

if(Array.isArray(colors)){
    //colors is an array
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #check #array
ADD COMMENT
Topic
Name
4+8 =