var a = {};
var b = [];
var c = 1;
var d = "string";
var e = false;
var f = undefined;
var g = null;
function isObject(o) {
return Object.prototype.toString.call(o) === "[object Object]";
}
console.log(isObject(a));
console.log(isObject(b));
console.log(isObject(c));
console.log(isObject(d));
console.log(isObject(e));
console.log(isObject(f));
console.log(isObject(g));
JS-オブジェクトの判定
------------
A [Pen](https://codepen.io/taquaki/pen/yPPZRV) by [Takaaki Sato](https://codepen.io/taquaki) on [CodePen](https://codepen.io).
[License](https://codepen.io/taquaki/pen/yPPZRV/license).