how to see if javascript type is array 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)