var arr = [] var obj = {} Object.prototype.toString.call(arr) // "[object Array]" Object.prototype.toString.call(obj) // "[object Object]"