Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if a javascript object is empty

function isEmpty(obj) {    return Object.keys(obj).length === 0;}
Source by levelup.gitconnected.com #
 
PREVIOUS NEXT
Tagged: #check #javascript #object #empty
ADD COMMENT
Topic
Name
9+7 =