test value is is array js code example
Example 1: javascript determine array type
var data = ['a', 'b', 'c']
var isArray = Array.isArray(data)
console.log(isArray)
Example 2: in javascript check is is an array or not
Array.isArray(yourItem)
var data = ['a', 'b', 'c']
var isArray = Array.isArray(data)
console.log(isArray)
Array.isArray(yourItem)