jquery empty object code example
Example 1: jquery check if empty object
jQuery.isEmptyObject( object );
Example:
jQuery.isEmptyObject({}) // true
jQuery.isEmptyObject({ foo: "bar" }) // false
Example 2: javjquery is emptyobject
jQuery.isEmptyObject({}); // true
jQuery.isEmptyObject({ foo: "bar" }); // false
// Remember to replace 'jQuery' with the correct alias if you're importing jquery:
import $ from 'jquery';
$.isEmptyObject({ foo: "bar" }); // false