<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gom68</author_name>
  <author_url>https://blog.hatena.ne.jp/gom68/</author_url>
  <blog_title>gom68の日記</blog_title>
  <blog_url>https://gom.hatenablog.com/</blog_url>
  <categories>
    <anon>tips</anon>
    <anon>javascript</anon>
  </categories>
  <description>JSのapplyってずっとよくわかってなかったので調べてみた。 schemeの(apply )と同じようなもんと考えて納得。あるオブジェクトの関数を別のオブジェクトに適用する。 &quot;hoge&quot;.slice() //=&gt; &quot;hoge&quot; [].slice.apply(&quot;hoge&quot;) // =&gt; [&quot;h&quot;, &quot;o&quot;, &quot;g&quot;, &quot;e&quot;] 似たメソッドでcallがあるが、引数の取り方が異なる。 Array.prototype.slice.apply(&quot;hoge&quot;, [3,4]) Array.prototype.slice.call(&quot;hoge&quot;, 3, 4) https://developer.mozi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgom.hatenablog.com%2Fentry%2F20110827%2F1314459563&quot; title=&quot; Function::apply and call - gom68の日記&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>2011-08-27 00:39:23</published>
  <title> Function::apply and call</title>
  <type>rich</type>
  <url>https://gom.hatenablog.com/entry/20110827/1314459563</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
