javascript if typeof array code example
Example 1: javascript typeof array
Array.isArray(arr)
Example 2: typeof array
const array = [ 'this', 'is', 'an', 'array' ];
console.log(typeof array); //object
Array.isArray(arr)
const array = [ 'this', 'is', 'an', 'array' ];
console.log(typeof array); //object