Check if JavaScript object is empty. January 28, 2021. javascript. js. Copy. if (obj && Object.entries(obj).length === 0 && obj.constructor === Object) {.
確定! 回上一頁