Answers for "es6 test if is array"

5

javascript typeof array

Array.isArray(arr)
Posted by: Guest on October-08-2020
3

js check if is array

if(Array.isArray(colors)){
    //colors is an array
}
Posted by: Guest on December-30-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language