Coderwall
Ruby
Python
JavaScript
Front-End
Tools
iOS
More
Tips
Ruby
Python
JavaScript
Front-End
Tools
iOS
PHP
Android
.NET
Java
Jobs
Jobs
Sign In or Up
Joined April 2024
·
Joshua Moore
Joshua Moore
·
0 Protips
1 Comments
Posted to
How to check if JavaScript Object is empty
7 months ago
How about
function isEmpty(obj){ return Object.keys(obj).length == 0 }
?
Achievements
1 Karma
0 Total ProTip Views
How about
?