{"id":9913,"date":"2019-03-14T16:35:19","date_gmt":"2019-03-14T07:35:19","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=9913"},"modified":"2019-03-14T16:36:10","modified_gmt":"2019-03-14T07:36:10","slug":"javascript%e3%81%aesymbol%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6%e8%a7%a3%e8%aa%ac","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9913","title":{"rendered":"Javascript\u306eSymbol\u306b\u3064\u3044\u3066\u89e3\u8aac"},"content":{"rendered":"<p>Javascrot\u306eSymbol\u6a5f\u80fd\u306f\u3001\u3082\u3068\u3082\u3068Javascript\u306b\u5b58\u5728\u3057\u3066\u3044\u305f\u6a5f\u80fd\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>ECMAScript6 (ES6, ES2015) \u3067\u5c0e\u5165\u3055\u308c\u305f\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n<h2>\u4f7f\u3044\u65b9<\/h2>\n<p>var a = Symbol();<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001a\u306b\u306f\u4ed6\u306e\u5024\u3092\u88ab\u3089\u306a\u3044\u5024(\u5177\u4f53\u7684\u306a\u6570\u5024\u3067\u306f\u306a\u3044)\u304c\u3001\u81ea\u52d5\u751f\u6210\u3055\u308c\u3066\u4ee3\u5165\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070<\/p>\n<p>var a = Symbol();<br \/>\nvar b = Symbol();<\/p>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3057\u3066\u3082\u3001a\u3068b\u306e\u5024\u306f\u7570\u306a\u3063\u305f\u5024\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5024\u306e\u578b\u306ftypeof\u3092\u3059\u308b\u3068\u300csymbol\u300d\u3068\u8868\u793a\u3055\u308c\u308b\u3001\u72ec\u81ea\u306e\u578b\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u4f55\u306e\u305f\u3081\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u306e\u304b<\/h2>\n<p>\u4f55\u6545\u3053\u306e\u3088\u3046\u306a\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u305f\u306e\u304b\u3068\u3044\u3046\u3068\u3001<br \/>\n\u81ea\u5206\u3067\u30e6\u30cb\u30fc\u30af\u306a\u5024\u3092\u8a2d\u5b9a\u3057\u305f\u3064\u3082\u308a\u3067\u3082\u3001\u4ed6\u306e\u5024\u3068\u4e88\u671f\u3057\u306a\u3044\u5f62\u3067\u885d\u7a81\u3059\u308b\u3053\u3068\u304c<br \/>\n\u3042\u308b\u305f\u3081\u3001\u305d\u306e\u3088\u3046\u306a\u72b6\u6cc1\u3092\u9632\u3050\u305f\u3081\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Javascrot\u306eSymbol\u6a5f\u80fd\u306f\u3001\u3082\u3068\u3082\u3068Javascript\u306b\u5b58\u5728\u3057\u3066\u3044\u305f\u6a5f\u80fd\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 ECMAScript6 (ES6, ES2015) \u3067\u5c0e\u5165\u3055\u308c\u305f\u6a5f\u80fd\u3067\u3059\u3002 \u4f7f\u3044\u65b9 var a = Symbol() [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[169,131],"tags":[],"class_list":["post-9913","post","type-post","status-publish","format-standard","hentry","category-javascript","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9913"}],"version-history":[{"count":0,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9913\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}