因此這個時候須要以下處理 prototype
if((Array.isArray(變量) && 變量.length === 0) || (Object.prototype.isPrototypeOf(變量) && Object.keys(變量).length === 0)){ alert('該方法判斷了{}花括號這種狀況!'); } 變量