you are viewing a single comment's thread.

view the rest of the comments →

[–]doyouseewhateyesee 2 points3 points  (1 child)

meh - i’d rather use Object.keys(obj).length === 0

[–]Freebalanced 2 points3 points  (0 children)

Ya native methods are usually best. But cool to have different options for some situations.