Browsing:

Tag: object check

Check Object is empty in Javascript

Check Object is empty in Javascript if an object is empty in JQuery we use jQuery.isEmptyObject( object ) with will return true on success , false on failure. Example :

    To check if an object is empty or not using Javascript we use Object.getOwnPropertyNames() .The Object.getOwnPropertyNames() method returns an array of all properties (enumerable or not) found directly upon a given object.

  As a function Read more…