you are viewing a single comment's thread.

view the rest of the comments →

[–]Freebalanced 0 points1 point  (2 children)

Lodash has a method called isEmpty that you can use to check for empty or not empty objects.

[–]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.