<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sugyan</author_name>
  <author_url>https://blog.hatena.ne.jp/sugyan/</author_url>
  <blog_title>すぎゃーんメモ</blog_title>
  <blog_url>https://memo.sugyan.com/</blog_url>
  <categories>
    <anon>Node.js</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>Perlだと、 use Data::Dumper; my @hoge = (&quot;fuga&quot;) x 5; print Dumper \@hoge; __END__ $VAR1 = [ 'fuga', 'fuga', 'fuga', 'fuga', 'fuga' ]; みたいな感じでx演算子を使って任意の個数の密な配列を簡単に作ることができるのだけど、JavaScriptではどうしたら良いのだろう？と。 new Array()で任意のサイズの配列は作れるけど、中身が無くて各要素に値を入れることができない。 $ node &gt; new Array(5) [ , , , , ] &gt; new Array(5…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.sugyan.com%2Fentry%2F20121015%2F1350291772&quot; title=&quot;任意の要素数の密な配列を生成するスニペット - すぎゃーんメモ&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>http://a0.twimg.com/profile_images/24532052/moon_normal.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-10-15 18:02:52</published>
  <title>任意の要素数の密な配列を生成するスニペット</title>
  <type>rich</type>
  <url>https://memo.sugyan.com/entry/20121015/1350291772</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
