# 如何判断某一个值是数组
Issue
欢迎在 Gtihub Issue 中回答此问题: Issue 563 (opens new window)
Author
完美实现一个月下载量超过一个亿的包: isarray (opens new window)
const isArray = Array.isArray || list => ({}).toString.call(list) === '[object Array]'
Author
a instanceof Array
Author
const a = []; console.log(a.constructor == Array);//true