{"published":"2016-05-29 23:34:45","categories":[],"url":"https://it7c.hatenadiary.org/entry/20160529/1464532485","version":"1.0","author_url":"https://blog.hatena.ne.jp/IT7C/","type":"rich","width":"100%","title":"javascript \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u914d\u5217\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4e2d\u306b\u914d\u5217\u306eindex\u3092\u8ffd\u52a0\u3057\u305f\u3044","author_name":"IT7C","height":"190","provider_url":"https://hatena.blog","blog_url":"https://it7c.hatenadiary.org/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fit7c.hatenadiary.org%2Fentry%2F20160529%2F1464532485\" title=\"javascript \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u914d\u5217\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u4e2d\u306b\u914d\u5217\u306eindex\u3092\u8ffd\u52a0\u3057\u305f\u3044 - \u30a4\u30ce\u30d9\u30fc\u30c8\u306a\u975e\u65e5\u5e38\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","image_url":null,"blog_title":"\u30a4\u30ce\u30d9\u30fc\u30c8\u306a\u975e\u65e5\u5e38","description":"var obj=[ { name:\"\u307f\u304b\u3093\" }, { name:\"\u308a\u3093\u3054\" }, { name:\"\u3070\u306a\u306a\" } ] \u3053\u308c\u3092 var obj=[ { id:0 name:\"\u307f\u304b\u3093\" }, { id:1 name:\"\u308a\u3093\u3054\" }, { id:2 name:\"\u3070\u306a\u306a\" } ] \u3068\u3057\u305f\u3044 console.log(JSON.stringify(obj.map((x,i) => (x.id=i) && x),null,' ')) \u3067\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u3067\u66f8\u3051\u308b\u304c0\u306e\u5834\u5408\u304c\u304a\u304b\u3057\u304f\u306a\u308b\u3002 [ 0, { \"name\": \"\u308a\u3093\u3054\", \"id\": 1 }, { \"name\": \"\u3070\u306a\u306a\", \"id\": 2 } ] \u4ee3\u2026"}