javascript check array or not 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)