Joined October 2012
·
Posted to
How to check if JavaScript Object is empty
over 1 year
ago
@develoser Underscore is just one of those overly useful tools out there and I agree and suggest that others check it out. Thanks for you input!
Posted to
How to check if JavaScript Object is empty
over 1 year
ago
@avenger7x Yes, that certainly works although it is not supported in some older browsers such as Firefox < 4 and IE < 9. It's a new addition under ECMAScript 5.
Achievements
605 Karma
1,105,958 Total ProTip Views
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/honeybadger-e6a507524dd5b8b273f39b437d9da1c1bbbb434a59a060a1fe67e3ad83736261.png)
Honey Badger
Have at least one original Node.js-specific repo
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/charity-bab6d575c53894cc9e395db7cdb1f0f91f176fa0cc8122c5f824e672f3d556a4.png)
Charity
Fork and commit to someone's open source project in need
@shawncplus is exactly right. A JS compressor should always strip comments.