Testing for an empty object in Javascript
In this guide, we will write a check for an empty object in JavaScript. To achieve this we would be using the custom built-in object.keys method. This returns a truthy value if the given object is empty. This is however easily achieved with lodash like so: