Object
Object
by ethertank
JavaScript
Object.prototype.isObject = function(){
if(
(this instanceof Object) &&
(this.length === undefined) &&
!(this instanceof Date) &&
!(this instanceof RegExp) &&
(this !== null)
) {
alert("これは日付でも配列でもnullでもregExpでもないオブジェクトだ(。-∀-)");
}
};
new Date().isObject();
new Array().isObject();
new RegExp().isObject();
new Object().isObject();//(。-∀-)
//こんなに要るのか?