javascript object with empty values code example
Example 1: es6 check if the object is empty
Object.entries(objectToCheck).length === 0
Example 2: javascript create object empty
var empty_obj = {};
Object.entries(objectToCheck).length === 0
var empty_obj = {};