<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>teramako</author_name>
  <author_url>https://blog.hatena.ne.jp/teramako/</author_url>
  <blog_title>hogehoge @teramako</blog_title>
  <blog_url>https://teramako.hatenadiary.org/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>ES6になると、String.prototype.repeatのメソッドが追加されるわけだが、そのアルゴリズムとパフォーマンスを追ってみている。ES6 String.prototype.repeat の仕様では以下の様な感じでシンプルな書き方をしている。 countが 0 より小さい、または 無限大である場合は RangeError count 0 ならば、空文字列 そうでない場合は、count回、文字列を繰り返して連結する 単純に実装すれば、以下の様な感じで済む。 String.prototype.repeat = function (count) { if (count &lt; 0 || !N…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fteramako.hatenadiary.org%2Fentry%2F20140403%2Fp1&quot; title=&quot;String repeat のアルゴリズムとパフォーマンス - hogehoge @teramako&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>2014-04-03 00:00:00</published>
  <title>String repeat のアルゴリズムとパフォーマンス</title>
  <type>rich</type>
  <url>https://teramako.hatenadiary.org/entry/20140403/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
