javascript check empty property

JavaScript
function isObjectEmpty(obj) {
    return Object.keys(obj).length === 0;
}
Source

Also in JavaScript: