Answers for "if object.keys are empty"

15

how to check if object is empty javascript

function isEmptyObject(obj) {
    return !Object.keys(obj).length;
}
Posted by: Guest on May-02-2020
2

js check if object is empty

> !!Object.keys(obj).length;
Posted by: Guest on December-02-2020

Code answers related to "if object.keys are empty"

Code answers related to "Javascript"

Browse Popular Code Answers by Language