jQuery.isPlainObject( object )Returns: Boolean
Description: Check to see if an object is a plain object (created using "{}" or "new Object").
-
version added: 1.4jQuery.isPlainObject( object )
-
objectType: PlainObjectThe object that will be checked to see if it's a plain object.
-
$.isPlainObject()
may evaluate inconsistently across browsers in certain instances.
document.location
using $.isPlainObject()
as follows:
1
|
|
$.isPlainObject()
against older browsers. A couple basic examples that do function correctly cross-browser can be found below.
Example:
1
2
|
|