Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

is check objet empty

// because Object.keys(new Date()).length === 0;
// we have to do some additional check
Object.keys(obj).length === 0 && obj.constructor === Object
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #objet #empty
ADD COMMENT
Topic
Name
9+5 =