const arr = [] 2Object.prototype.toString.call(arr) === '[object Array]' // true 3 4
const obj = {} 5Object.prototype.toString.call(obj) // "[object Object]"