Check if Object is empty with JavaScript/jQuery
you can do this by jQuery.isEmptyObject() Check to see if an object is empty (contains no properties). jQuery.isEmptyObject( object ) Example: jQuery.isEmptyObject({}) // true jQuery.isEmptyObject({ foo: “bar” }) // false from Jquery