JavaScriptã¯ãtypeof nullã"object"ã ã£ãããtypeof new String("foo")ã"object"ã ã£ããã"foo" instanceof Stringãfalseã ã£ããããã ãªã®ã§ãããããã¾ã¨ãã¦ä¸ã®ãããªé¢æ°ã«ãã¦ãããããã¹ã¯ã使ã£ã¦ç®çã®åãã©ããã確èªã§ããããã«ããã var Type = { OBJECT: 0x01, ARRAY: 0x02, STRING: 0x04, FUNCTION: 0x08, NUMBER: 0x10, BOOLEAN: 0x20, UNDEFINED: 0x40, NULL: 0x80, getType: function getType(object) { var ret = 0x00; if (object instanceof Object) ret |= 0x01; if (object
{{#tags}}- {{label}}
{{/tags}}