how to check if something is type of array in javascript 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)