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 www.samanthaming.com #
 
PREVIOUS NEXT
Tagged: #typescript #check #object #empty
ADD COMMENT
Topic
Name
5+2 =