let arr = [1, 2, 3, 4, 5, 6];
console.log(arr instanceof Array); // true
let arr = [1, 2, 3, 4, 5, 6];
console.log(Array.isArray(arr)); // true
let arr = [1, 2, 3, 4, 5, 6];
console.log(arr.constructor.name === ‘Array‘);
原文:https://www.cnblogs.com/jiaoyisen/p/14787082.html