Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

typescript check if object is empty

var s = {};
Object.keys(s).length // if 0 then is empty
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #check #object #empty
ADD COMMENT
Topic
Name
4+1 =