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
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