Faradin
0
Q:

es6 check if the object is empty

function isEmptyObject(obj) {
    return !Object.keys(obj).length;
}
5
Object.entries(objectToCheck).length === 0
0

New to Communities?

Join the community