Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js is object empty

function isObjectEmpty(obj) {
    return Object.keys(obj).length === 0;
}
 
PREVIOUS NEXT
Tagged: #js #object #empty
ADD COMMENT
Topic
Name
2+1 =