js 判断 是否是Array
const isArray = (val) => {
return Object.prototype.toString.call(val) === '[object Array]'
}
isArray([]) // true
js 判断 是否是Array
const isArray = (val) => {
return Object.prototype.toString.call(val) === '[object Array]'
}
isArray([]) // true