Pot.js で利用可能。 PotLite.js では利用できません。
引数 o がプレーンなオブジェクトインスタンスかどうかチェックします。
引数 o がプレーンなオブジェクト e.g., {}, {foo: 1} etc.
かどうか調べます。
Pot.globalize() が適応されている場合、Pot.isPlainObject() が isPlainObject() で実行できます。
引数 o がプレーンなオブジェクトインスタンスなら true が返り、そうでない場合 false が返ります。
Pot.debug(Pot.isPlainObject(String)); // false Pot.debug(Pot.isPlainObject(new String(''))); // false Pot.debug(Pot.isPlainObject(Date)); // false Pot.debug(Pot.isPlainObject(new Date())); // false Pot.debug(Pot.isPlainObject(Number)); // false Pot.debug(Pot.isPlainObject(new Number(1))); // false Pot.debug(Pot.isPlainObject(Array)); // false Pot.debug(Pot.isPlainObject(new Array())); // false Pot.debug(Pot.isPlainObject([])); // false Pot.debug(Pot.isPlainObject(Object)); // false Pot.debug(Pot.isPlainObject(new Object())); // true Pot.debug(Pot.isPlainObject({})); // true Pot.debug(Pot.isPlainObject({foo: 'bar'})); // true