Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

es6 check if the object is empty

Object.entries(objectToCheck).length === 0
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #check #object #empty
ADD COMMENT
Topic
Name
6+8 =