<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hokaccha</author_name>
  <author_url>https://blog.hatena.ne.jp/hokaccha/</author_url>
  <blog_title>hokaccha memo</blog_title>
  <blog_url>https://hokaccha.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>Array.prototype.keysはIteratorを返すのでArray.fromに食わせる Array.from(Array(5).keys()); //=&gt; [0, 1, 2, 3, 4] もしくは Array.from({ length: 5 }).map((v, k) =&gt; k); //=&gt; [0, 1, 2, 3, 4] Array.fromの第二引数はmap的な役割があるので Array.from({ length: 5 }, (v, k) =&gt; k); //=&gt; [0, 1, 2, 3, 4] こんな感じ。 [追記] 便利。 ES6でN個の配列 - hokaccha ham…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhokaccha.hatenablog.com%2Fentry%2F2016%2F03%2F21%2F162936&quot; title=&quot;ES6でN個の配列 - hokaccha memo&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-03-21 16:29:36</published>
  <title>ES6でN個の配列</title>
  <type>rich</type>
  <url>https://hokaccha.hatenablog.com/entry/2016/03/21/162936</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
