How to Check if Object is Empty in JavaScript

Here’s a Code Recipe to check if an object is empty or not.