{"id":23971,"date":"2017-08-14T12:15:08","date_gmt":"2017-08-14T03:15:08","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=23971"},"modified":"2024-05-06T11:42:45","modified_gmt":"2024-05-06T02:42:45","slug":"%e3%81%aa%e3%82%8b%e3%81%bb%e3%81%a9%ef%bc%81javascript%e3%81%aetypeof%e3%81%a7%e5%9e%8b%e5%88%a4%e5%ae%9a4%e3%81%a4%e3%81%ae%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/23971","title":{"rendered":"JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01Web\u30b3\u30fc\u30c0\u30fc\u30fb\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306e\u8c9d\u539f(<a href=\"https:\/\/twitter.com\/touhicomu\" target=\"_blank\" rel=\"noopener noreferrer\">@touhicomu<\/a>)\u3067\u3059\u3002<\/p>\n<p>JavaScript\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u969b\u306b\u3001\u5909\u6570\u306e\u578b\u3092\u77e5\u308a\u305f\u3044\u3068\u304d\u3063\u3066\u3088\u304f\u3042\u308a\u307e\u3059\u3088\u306d\u3002<br \/>\n\u307e\u305f\u3001\u3069\u306e\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306a\u306e\u304b\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u3082\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306a\u6642\u306b\u4f7f\u3048\u308b\u3001JavaScript\u306etypeof\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u4e0b\u8a18\u306e\u6d41\u308c\u3067\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u3010\u57fa\u790e\u3011\u305d\u3082\u305d\u3082\u578b\u3068\u306f\uff1f<br \/>\n\u3010\u57fa\u790e\u3011typeof\u306e\u57fa\u672c\u7684\u306a\u578b\u5224\u5b9a\u65b9\u6cd5<br \/>\n\u3010\u767a\u5c55\u3011typeof\u3067\u914d\u5217\u3084\u30e9\u30c3\u30d1\u30fc\u30af\u30e9\u30b9\u3092\u5224\u5b9a\u3059\u308b\u65b9\u6cd5<br \/>\n\u3010\u767a\u5c55\u3011typeof\u3068instanceof\u306e\u9055\u3044<\/p>\n<p>typeof\u306e\u4f7f\u3044\u65b9\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3001\u6b63\u3057\u3044\u5834\u9762\u3067\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u3001\u3057\u3063\u304b\u308a\u5b66\u7fd2\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u305d\u3082\u305d\u3082\u578b\u3068\u306f\uff1f<\/h2>\n<p>JavaScript\u306e\u578b\u5224\u5b9a\u306b\u3064\u3044\u3066\u89e3\u8aac\u3059\u308b\u524d\u306b\u3001\u305d\u3082\u305d\u3082\u578b(\u304b\u305f)\u3068\u306f\u3069\u3093\u306a\u3082\u306e\u306a\u306e\u304b\u3001\u304d\u3061\u3093\u3068\u7406\u89e3\u3059\u308b\u3068\u3053\u308d\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u4e16\u754c\u306b\u9650\u3089\u305a\u65e5\u5e38\u306e\u4e16\u754c\u3067\u3082\u201d\u6587\u5b57\u201d\u3068\u3044\u3046\u8a00\u8449\u306f\u8272\u3005\u306a\u3082\u306e\u3092\u6307\u3057\u307e\u3059\u3088\u306d\u3002<br \/>\n\u65e5\u672c\u8a9e\u306e\u3072\u3089\u304c\u306a\u3084\u82f1\u8a9e\u3001\u305d\u308c\u306b\u6570\u5b57\u306a\u3069\u69d8\u3005\u306a\u7a2e\u985e\u306b\u5206\u985e\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u4e16\u754c\u3067\u3082\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u304c\u6271\u3046\u201d\u30c7\u30fc\u30bf\u201d\u3068\u3044\u3046\u8a00\u8449\u304c\u6307\u3059\u3082\u306e\u3068\u3057\u3066\u3001\u3044\u304f\u3064\u304b\u306e\u7a2e\u985e\u304c\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u306e\u7a2e\u985e\u306e\u3053\u3068\u3092\u4e00\u822c\u7684\u306b\u201d\u578b\u201d\u3068\u547c\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u65e5\u672c\u8a9e\u306e\u201d\u304a\u306f\u3088\u3046\u201d\u3068\u3044\u3046\u6587\u5b57\u306e\u30c7\u30fc\u30bf\u306f\u6587\u5b57\u5217\u578b(\u3082\u3057\u304f\u306fString\u578b)\u3068\u547c\u3070\u308c\u3001\u6570\u5b57\u306e1\u3084100\u306a\u3069\u306f\u6570\u5024\u578b\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u305d\u306e\u4e2d\u3067\u3001JavaScript\u306e\u57fa\u672c\u7684\u306a\u578b\u306e\u3053\u3068\u3092\u7d44\u307f\u8fbc\u307f\u578b(\u3082\u3057\u304f\u306f\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b)\u3068\u547c\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u3084\u308b\u3088\u3046\u306a\u5224\u5b9a\u306e\u969b\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u578b\u304c\u3088\u304f\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u307e\u3060\u3053\u308c\u3067\u3082\u4e00\u90e8\u3067\u3059\u304c\u3001\u3072\u3068\u307e\u305a\u3053\u308c\u3060\u3051\u62bc\u3055\u3048\u3066\u304a\u3051\u3070OK\u3067\u3059\u3002<\/p>\n\n<table id=\"tablepress-153\" class=\"tablepress tablepress-id-153\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">\u578b\u540d<\/th><th class=\"column-2\">\u5024\u306e\u4f8b<\/th><th class=\"column-3\">\u5224\u5b9a\u3067\u8868\u793a\u3055\u308c\u308b\u5024<\/th><th class=\"column-4\">\u5099\u8003<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr class=\"row-2\">\n\t<td class=\"column-1\">\u6570\u5024\u578b<\/td><td class=\"column-2\">1,2,3\u306a\u3069<\/td><td class=\"column-3\">number<\/td><td class=\"column-4\"><\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">\u6587\u5b57\u5217\u578b<\/td><td class=\"column-2\">\u304a\u306f\u3088\u3046\u3001abc\u306a\u3069<\/td><td class=\"column-3\">string<\/td><td class=\"column-4\">String\u578b\u3068\u3082\u547c\u3070\u308c\u308b<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">\u771f\u507d\u5024\u578b<\/td><td class=\"column-2\">True \/ False<\/td><td class=\"column-3\">boolean<\/td><td class=\"column-4\"><\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">Null\u578b<\/td><td class=\"column-2\">null<\/td><td class=\"column-3\">object<\/td><td class=\"column-4\"><\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">Undefined\u578b<\/td><td class=\"column-2\">undefined<\/td><td class=\"column-3\">undefined<\/td><td class=\"column-4\">\u4f55\u3082\u4ee3\u5165\u3055\u308c\u3066\u3044\u306a\u3044\u5909\u6570\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5024<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">\u95a2\u6570<\/td><td class=\"column-2\">function() {}<\/td><td class=\"column-3\">function<\/td><td class=\"column-4\"><\/td>\n<\/tr>\n<tr class=\"row-8\">\n\t<td class=\"column-1\">\u4ed6\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/td><td class=\"column-2\">{a: 1}<\/td><td class=\"column-3\">object<\/td><td class=\"column-4\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-153 from cache -->\n<p>\u578b\u306b\u306f\u672c\u5f53\u306b\u8272\u3005\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4e00\u6c17\u306b\u899a\u3048\u308b\u306e\u306f\u5927\u5909\u3060\u3068\u601d\u3046\u306e\u3067\u3001\u5fc5\u8981\u306a\u6642\u306b\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n<h2>\u578b\u3092\u5224\u5b9a\u3059\u308btypeof\u306e\u4f7f\u3044\u65b9<\/h2>\n<p>\u578b\u306e\u7a2e\u985e\u306b\u3064\u3044\u3066\u30d0\u30c3\u30c1\u30ea\u7406\u89e3\u3067\u304d\u305f\u3068\u3053\u308d\u3067\u3001\u578b\u306e\u5224\u5b9a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u578b\u306e\u5224\u5b9a\u306b\u306f\u3001typeof\u3068\u3044\u3046\u6f14\u7b97\u5b50\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3001typeof\u306e\u5f8c\u308d\u306b\u578b\u3092\u5224\u5b9a\u3057\u305f\u3044\u5024\u3092\u8a18\u8ff0\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \">\r\ntypeof \u5224\u5b9a\u3057\u305f\u3044\u5024\r\n<\/pre>\n<p>\u3067\u306f\u3001\u3053\u308c\u3092\u4f7f\u3063\u3066\u69d8\u3005\u306a\u578b\u3092\u5224\u5b9a\u3057\u3066\u3001\u3088\u308a\u7406\u89e3\u3092\u6df1\u3081\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u7d44\u307f\u8fbc\u307f\u578b(\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b)\u306e\u5834\u5408<\/h3>\n<p>typeof\u6f14\u7b97\u5b50\u3067\u5224\u5b9a\u3059\u308b\u3082\u306e\u3068\u3057\u3066\u3001\u307e\u305a\u306f\u3001\u6587\u5b57\u5217\u3084\u6570\u5024\u578b\u306a\u3069\u306e\u7d44\u307f\u8fbc\u307f\u578b(\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b)\u306etypeof\u306e\u5224\u5b9a\u7d50\u679c\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:js decode:true \">\r\nwindow.onload = function () {\r\n    \/\/ typeof\u306e\u4f7f\u7528\u4f8b\r\n\r\n    \/\/ Number\r\n    console.log( 'typeof 1 = ' + (typeof 1) );\r\n    console.log( 'typeof 1.41 = ' + (typeof 1.41) );\r\n    console.log( 'typeof Math.PI = ' + (typeof Math.PI) );\r\n    console.log( 'typeof Infitity = ' + (typeof Infinity) );\r\n\r\n    \/\/ String\r\n    console.log( 'typeof &quot;&quot; = ' + (typeof &quot;&quot;) );\r\n    console.log( 'typeof &quot;abc&quot; = ' + (typeof &quot;abc&quot;) );\r\n    console.log( 'typeof &quot;123&quot; = ' + (typeof &quot;123&quot;) );\r\n    console.log( 'typeof (typeof 0) = ' + (typeof (typeof 0)) );\r\n\r\n    \/\/ Boolean\r\n    console.log( 'typeof true = ' + (typeof true) );\r\n    console.log( 'typeof false = ' + (typeof false) );\r\n\r\n    \/\/ Undefined\r\n    console.log( 'typeof undefined = ' + (typeof undefined) );\r\n}\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">\r\n\/\/ Number\r\ntypeof 1 = number\r\ntypeof 1.41 = number\r\ntypeof Math.PI = number\r\ntypeof Infitity = number\r\n\r\n\/\/ String\r\ntypeof &quot;&quot; = string\r\ntypeof &quot;abc&quot; = string\r\ntypeof &quot;123&quot; = string\r\ntypeof (typeof 0) = string\r\n\r\n\/\/ Boolean\r\ntypeof true = boolean\r\ntypeof false = boolean\r\n\r\n\/\/ Undefined\r\ntypeof undefined = undefined\r\n<\/pre>\n<p>\u4ee5\u4e0a\u306e\u3088\u3046\u306b\u3001\u7d44\u307f\u8fbc\u307f\u578b\u306b\u5bfe\u3057\u3066\u3001typeof\u306f\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>\u307e\u305f\u3001\u300ctypeof (typeof 0) = string\u300d\u3068\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u306b\u3001typeof\u306e\u8fd4\u308a\u5024\u306fstring\u578b\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<h3>\u95a2\u6570\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u578b\u306e\u5834\u5408<\/h3>\n<p>\u6b21\u306f\u3001\u95a2\u6570\u3084\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3059\u308btypeof\u306e\u7d50\u679c\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:js decode:true \">\r\nwindow.onload = function () {\r\n    \/\/ Function\r\n    console.log( 'typeof function () { } = ' + (typeof function () { }) );\r\n    console.log( 'typeof class abc { } = ' + (typeof class abc { }) );\r\n    console.log( 'typeof Math.abs = ' + (typeof Math.abs) );\r\n\r\n    \/\/ Object\r\n    console.log( 'typeof { prop: 1 } =' + (typeof { prop: 1 }) );\r\n\r\n    \/\/ null\u306fObject\u578b\u3067\u3059\u3002\r\n    console.log( 'typeof null = ' + (typeof null) );\r\n\r\n    \/\/ Date()\u3084String()\u306e\u30e9\u30c3\u30d1\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306fObject\u3068\u5224\u5b9a\u3055\u308c\u307e\u3059\u3002\r\n    console.log( 'typeof new String(&quot;abc&quot;) = ' + (typeof new String(&quot;abc&quot;)) );\r\n\r\n    \/\/ Array \u306f Object\u3068\u5224\u5b9a\u3055\u308c\u307e\u3059\u3002\r\n    console.log( 'typeof [1, 2, 3] = ' + (typeof [1, 2, 3]) );\r\n\r\n    \/\/ Array.isArray \u3084 Object.prototype.toString.call \u306a\u3069\u3067\r\n    \/\/ \u666e\u901a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u914d\u5217\u3092\u533a\u5225\u3067\u304d\u307e\u3059\u3002\r\n    console.log( 'Array.isArray({ prop: 1 }) = ' + (Array.isArray({ prop: 1 })) );\r\n    console.log( 'Array.isArray([1, 2, 3]) = ' + Array.isArray([1, 2, 3]) );\r\n}\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">\r\n\/\/ Function\r\ntypeof function () { } = function\r\ntypeof class abc { } = function\r\ntypeof Math.abs = function\r\n\r\n\/\/ Object\r\ntypeof { prop: 1 } =object\r\n\r\n\/\/ null\u306fObject\u578b\u3067\u3059\u3002\r\ntypeof null = object\r\n\r\n\/\/ Date()\u3084String()\u306e\u30e9\u30c3\u30d1\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306fObject\u3068\u5224\u5b9a\u3055\u308c\u307e\u3059\u3002\r\ntypeof new String(&quot;abc&quot;) = object\r\n\r\n\/\/ Array \u306f Object\u3068\u5224\u5b9a\u3055\u308c\u307e\u3059\u3002\r\ntypeof [1, 2, 3] = object\r\n\r\n\/\/ Array.isArray \u3084 Object.prototype.toString.call \u306a\u3069\u3067\r\n\/\/ \u666e\u901a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u914d\u5217\u3092\u533a\u5225\u3067\u304d\u307e\u3059\u3002\r\nArray.isArray({ prop: 1 }) = false\r\nArray.isArray([1, 2, 3]) = true\r\n<\/pre>\n<p>\u95a2\u6570\u3084\u30af\u30e9\u30b9\u3001Math\u306e\u7d44\u307f\u8fbc\u307f\u95a2\u6570\u306a\u3069\u306f\u3001&quot;function&quot;\u3068\u5224\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<p>\u307e\u305f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f&quot;object&quot;\u3068\u6b63\u3057\u304f\u5224\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u914d\u5217\u3084\u30e9\u30c3\u30d1\u30fc\u30af\u30e9\u30b9\u3082\u201dobject\u201d\u3068\u5224\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30e9\u30c3\u30d1\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u3001\u7d44\u307f\u8fbc\u307f\u578b\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5316\u3057\u305f\u3082\u306e\u3067\u3059\u306e\u3067\u3001&quot;object&quot;\u3068\u5224\u5b9a\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3067\u306f\u53b3\u5bc6\u306a\u5224\u5b9a\u3068\u306f\u8a00\u3048\u307e\u305b\u3093\u306d\u3002<\/p>\n<p>\u305d\u3093\u306a\u6642\u3001\u306fArray.isArray()\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070\u3001\u914d\u5217\u306e\u5834\u5408\u306ftrue\u3001\u914d\u5217\u4ee5\u5916\u306e\u5834\u5408\u306ffalse\u3092\u8fd4\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<h2>\u914d\u5217\u3084\u30e9\u30c3\u30d1\u30fc\u30af\u30e9\u30b9\u3092\u5224\u5b9a\u3059\u308b<\/h2>\n<p>typeof\u3067\u306f\u3001\u30e9\u30c3\u30d1\u30fc\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304cObject\u3068\u5224\u5b9a\u3055\u308c\u3001Array\u3082Object\u3068\u5224\u5b9a\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3082\u3063\u3068\u7d30\u304b\u304f\u5224\u5b9a\u304c\u3067\u304d\u308b\u3088\u3046\u3001\u3053\u308c\u3089\u3092\u6539\u5584\u3059\u308b\u95a2\u6570\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4e0b\u8a18\u306egetClassName()\u3068\u3044\u3046\u95a2\u6570\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:js decode:true \">\r\nwindow.onload = function () {\r\n    \/\/typeof\u306e\u95a2\u6570\u5316\u306e\u4f8b\r\n    function getClassName(obj) {\r\n        if (typeof obj === &quot;undefined&quot;) {\r\n\r\n            \/\/ obj\u304cundefined\r\n            return &quot;undefined&quot;;\r\n\r\n        } else if (obj === null) {\r\n\r\n            \/\/ obj\u304cnull\r\n            return &quot;null&quot;;\r\n\r\n        } else {\r\n\r\n            \/\/ obj\u304c\u6709\u52b9\r\n            \/\/ prototype\u540d\u53d6\u5f97\r\n            var className = Object.prototype.toString.call(obj);\r\n\r\n            \/\/ &quot;object&quot;\u4ee5\u964d\u306e\u30af\u30e9\u30b9\u540d\u3092\u53d6\u5f97\r\n            var matches = className.match(\/^[objects(.*)]$\/);\r\n            if (matches.length &gt; 0) {\r\n\r\n                \/\/ \u30af\u30e9\u30b9\u540d\u304c\u5b58\u5728\r\n                return matches[1];\r\n\r\n            } else {\r\n\r\n                return className;\r\n\r\n            }\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p>\u5f15\u6570\u304cundefined\u304bnull\u306e\u5834\u5408\u306f\u3001\u3044\u305a\u308c\u3082\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u306a\u3044\u306e\u3067\u305d\u306e\u307e\u307e\u8fd4\u308a\u5024\u306b\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u306e\u5224\u65ad\u306btypeof\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>null\u304b\u3069\u3046\u304b\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b===\u6f14\u7b97\u5b50\u3092\u4f7f\u3063\u3066\u76f4\u63a5null\u304b\u3092\u5224\u65ad\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306fprototype\u540d\u3092\u53d6\u5f97\u3057\u3001\u305d\u306e\u4e2d\u304b\u3089\u6b63\u898f\u8868\u73fe\u306b\u3066\u30af\u30e9\u30b9\u540d\u3092\u629c\u304d\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u3001typeof\u306e\u6a5f\u80fd\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3067\u306f\u3001\u4f5c\u6210\u3057\u305f\u95a2\u6570\u3092\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u5224\u5b9a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:js decode:true \">\r\nwindow.onload = function () {\r\n    console.log( 'getClassName(&quot;&quot;) = ' + getClassName(&quot;&quot;) );\r\n    console.log( 'getClassName(true) = ' + getClassName(true) );\r\n    console.log( 'getClassName(0) = ' + getClassName(0) );\r\n\r\n    \/\/ Array\u3082Array\u3068\u5224\u5b9a\u3067\u304d\u308b\u3002\r\n    console.log( 'getClassName([1,2,3]) = ' + getClassName([1,2,3]) );\r\n    console.log( 'getClassName({a: 1}) = ' + getClassName({a: 1}) );\r\n    console.log( 'getClassName(null) = ' + getClassName(null) );\r\n\r\n    var FuncA = function (a) { return a; };\r\n    console.log( 'getClassName(FuncA) = ' + getClassName(FuncA) );\r\n}\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">\r\ngetClassName(&quot;&quot;) = String\r\ngetClassName(true) = Boolean\r\ngetClassName(0) = Number\r\n\r\n\/\/ Array\u3082Array\u3068\u5224\u5b9a\u3067\u304d\u308b\u3002\r\ngetClassName([1,2,3]) = Array\r\ngetClassName({a: 1}) = Object\r\ngetClassName(null) = null\r\n\r\ngetClassName(FuncA) = Function\r\n<\/pre>\n<p>\u4ee5\u4e0a\u306e\u3088\u3046\u306b\u3001\u7d44\u307f\u8fbc\u307f\u578b\u304a\u3088\u3073Array\u306b\u3064\u3044\u3066\u3082\u305d\u306e\u30af\u30e9\u30b9\u540d\u3092\u53d6\u5f97\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u95a2\u6570\u306e\u30af\u30e9\u30b9\u540d\u3082\u53d6\u5f97\u3067\u304d\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<h2>\u985e\u4f3c\u30e1\u30bd\u30c3\u30c9instanceof\u3068\u306e\u9055\u3044<\/h2>\n<p>typeof\u6f14\u7b97\u5b50\u3068\u4f3c\u305f\u3088\u3046\u306a\u5224\u5b9a\u51e6\u7406\u3092\u884c\u3046\u6f14\u7b97\u5b50\u306binstanceof\u6f14\u7b97\u5b50\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>instanceof\u6f14\u7b97\u5b50\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3069\u306e\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304b\u3092\u5224\u5b9a\u3059\u308b\u969b\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u306f\u7c21\u5358\u3001instanceof\u306b\u7d9a\u3051\u3066\u8abf\u3079\u305f\u3044\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre class=\"lang:js decode:true \">\r\nwindow.onload = function () {\r\n    \/\/ instanceof\u306e\u4f7f\u7528\u4f8b\r\n    var arrayData = [1, 2, 3, 4, 5];\r\n\r\n    console.log( 'arrayData instanceof Array =' + (arrayData instanceof Array) ); \r\n    console.log( 'arrayData instanceof Object = ' + (arrayData instanceof Object) );\r\n\r\n    \/\/ \u7d44\u307f\u8fbc\u307f\u578b(\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b)\u306b\u306finstanceof\u306f\u52b9\u304b\u306a\u3044\u3002\r\n    console.log( '1 instanceof Number = ' + (1 instanceof Number) );\r\n    console.log( '&quot;abc&quot; instanceof String = ' + (&quot;abc&quot; instanceof String) );\r\n    console.log( 'true instanceof Boolean = ' + (true instanceof Boolean) );\r\n\r\n}\r\n<\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<\/p>\n<pre class=\"striped:false marking:false ranges:false nums:false nums-toggle:false lang:default decode:true \">\r\narrayData instanceof Array =true\r\narrayData instanceof Object = true\r\n\r\n \/\/ \u7d44\u307f\u8fbc\u307f\u578b(\u30d7\u30ea\u30df\u30c6\u30a3\u30d6\u578b)\u306b\u306finstanceof\u306f\u52b9\u304b\u306a\u3044\u3002\r\n1 instanceof Number = false\r\n&quot;abc&quot; instanceof String = false\r\ntrue instanceof Boolean = false\r\n<\/pre>\n<p>\u4ee5\u4e0a\u306e\u3088\u3046\u306b\u3001\u914d\u5217\u306f\u3001Array\u3068Object\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u3057\u305f\u3002<br \/>\n\u3053\u308c\u306fArray\u304cObject\u3092\u7d99\u627f\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3060\u304b\u3089\u3067\u3059\u306d\u3002<\/p>\n<p>\u307e\u305f\u3001\u7d44\u307f\u8fbc\u307f\u578b\u306b\u306f\u3001instanceof\u306f\u4f7f\u7528\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u7d44\u307f\u8fbc\u307f\u578b\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7d99\u627f\u3057\u305f&quot;\u3082\u306e(\u30aa\u30d6\u30b8\u30a7\u30af\u30c8)&quot;\u3067\u306f\u306a\u304f\u3001\u5358\u306a\u308b&quot;\u5024&quot;\u306a\u306e\u3067\u3001\u7d44\u307f\u8fbc\u307f\u578b\u304c\u306a\u3093\u3089\u304b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u306a\u308b\u3053\u3068\u306f\u306a\u3044\u304b\u3089\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u305f\u304b\uff1f<br \/>\ntypeof\u6f14\u7b97\u5b50\u306f\u3001\u5909\u6570\u306e\u578b\u3092\u53d6\u5f97\u3059\u308b\u306e\u306b\u4fbf\u5229\u3067\u3059\u306d\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u30dd\u30a4\u30f3\u30c8\u3092\u304a\u3055\u3089\u3044\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><strong>\u30fb\u7d44\u307f\u8fbc\u307f\u578b\u306e\u30e9\u30c3\u30d1\u30fc\u30af\u30e9\u30b9\u306b\u5bfe\u3057\u3066\u306f\u3046\u307e\u304f\u52d5\u4f5c\u3057\u306a\u3044<br \/>\n\u30fbinstanceof\u6f14\u7b97\u5b50\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u3069\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306a\u306e\u304b\u306e\u5224\u5b9a\u304c\u3067\u304d\u308b<br \/>\n\u30fb\u7d44\u307f\u8fbc\u307f\u578b\u306e\u30e9\u30c3\u30d1\u30fc\u30af\u30e9\u30b9\u3082\u6b63\u3057\u304f\u5224\u5b9a\u3067\u304d\u3066\u3044\u308b<br \/>\n\u30fbtypeof\u6f14\u7b97\u5b50\u3092\u3046\u307e\u304f\u95a2\u6570\u5316\u3059\u308c\u3070\u4fbf\u5229\u306a\u30b3\u30fc\u30c9\u304c\u3067\u304d\u308b<\/strong><\/p>\n<p>\u7686\u3055\u3093\u3082\u305c\u3072\u3001\u3054\u81ea\u5206\u3067\u95a2\u6570\u5316\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u3089\u3001\u662f\u975e\u3053\u306e\u8a18\u4e8b\u3092\u601d\u3044\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01Web\u30b3\u30fc\u30c0\u30fc\u30fb\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306e\u8c9d\u539f(@touhicomu)\u3067\u3059\u3002 JavaScript\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u969b\u306b\u3001\u5909\u6570\u306e\u578b\u3092\u77e5\u308a\u305f\u3044\u3068\u304d\u3063\u3066\u3088\u304f\u3042\u308a\u307e\u3059\u3088\u306d\u3002 \u307e\u305f\u3001\u3069\u306e\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306a\u306e\u304b\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u3082\u591a\u3044 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":67996,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2346],"tags":[95],"class_list":["post-23971","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript-study","tag-javascript"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/23971\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/23971\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-14T03:15:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:42:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/typeof.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23971#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23971\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac\",\"datePublished\":\"2017-08-14T03:15:08+00:00\",\"dateModified\":\"2024-05-06T02:42:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23971\"},\"wordCount\":194,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23971#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/typeof.jpg\",\"keywords\":[\"JavaScript\"],\"articleSection\":[\"Javascript\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23971\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23971\",\"name\":\"JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23971#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23971#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/typeof.jpg\",\"datePublished\":\"2017-08-14T03:15:08+00:00\",\"dateModified\":\"2024-05-06T02:42:45+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23971#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23971\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23971#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/typeof.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/typeof.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23971#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/23971","og_locale":"ja_JP","og_type":"article","og_title":"JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/23971","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"2017-08-14T03:15:08+00:00","article_modified_time":"2024-05-06T02:42:45+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/typeof.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/23971#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/23971"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac","datePublished":"2017-08-14T03:15:08+00:00","dateModified":"2024-05-06T02:42:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/23971"},"wordCount":194,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/23971#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/typeof.jpg","keywords":["JavaScript"],"articleSection":["Javascript\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/23971","url":"https:\/\/www.sejuku.net\/blog\/23971","name":"JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/23971#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/23971#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/typeof.jpg","datePublished":"2017-08-14T03:15:08+00:00","dateModified":"2024-05-06T02:42:45+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/23971#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/23971"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/23971#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/typeof.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/typeof.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/23971#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"JavaScript\u306e\u5024\u306e\u578b\u3092\u5224\u5b9a\u3057\u3088\u3046! typeof\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/23971","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=23971"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/23971\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/67996"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=23971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=23971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=23971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}