Answers for "javascript is array type check"

3

javascript determine array type

var data = ['a', 'b', 'c']
var isArray = Array.isArray(data)
console.log(isArray)
Posted by: Guest on May-04-2020
13

javascript check if is array

var colors=["red","green","blue"];

if(Array.isArray(colors)){
    //colors is an array
}
Posted by: Guest on July-22-2019

Code answers related to "javascript is array type check"

Code answers related to "Javascript"

Browse Popular Code Answers by Language