$.isEmptyObject()does not take into account the type of object or its creation; if it has absolutely no properties, this function returns true.
$.isPlainObject()returns true for objects that are pure instances Object; false for objects that have some other type, for example. Number, String, FunctionOr user-defined type.
The manual for $.isPlainObject():
: , ( "{}" " " ).
{} true, Object. , $.isEmptyObject() true.