Use Object.keys() to Check Empty Objects
Problem
Checking if an object is empty requires iterating through its properties manually.
Solution
Use Object.keys(obj).length === 0 to quickly check if an object has no properties.
Benefit
One-line solution that is faster and more reliable than manual iteration.