js determine if array code example
Example 1: javascript determine array type
var data = ['a', 'b', 'c']
var isArray = Array.isArray(data)
console.log(isArray)
Example 2: javascript typeof array
Array.isArray(arr)
var data = ['a', 'b', 'c']
var isArray = Array.isArray(data)
console.log(isArray)
Array.isArray(arr)