check typeof 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: typeof array
const array = [ 'this', 'is', 'an', 'array' ];
console.log(typeof array); //object