// null, undefined 不會通過
function isObject(value){
return value === Object(value);
}
var data = [undefined, null, 1, 'hi', [], {}, new Map(), new Man()];
JSON.stringify(data) =>
null [object Null]
1 [object Number]
"hi" [object String]
[] [object Array]
{} [object Object]
{} [object Map]
{"name":"man"} [object Object]