Is object empty? [duplicate] May 13, 2022 by Tarik For ECMAScript5 (not supported in all browsers yet though), you can use: Object.keys(obj).length === 0