<?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>配列の中から必要な要素を抜き取りたい事は良くある。そんな時、filterメソッドが便利だ。 説明がCore JavaScript 1.5 Reference:Global Objects:Array:filter - MDCに載っているが、ちょっと複雑な例が載っていないので理解しにくい。ちょっと複雑な例ってのはどういうのかというと、用例では要素の値が 10 以上と限定されているが、任意の数値に変えて判定させたい様な場合だ。 var array = [ 7, 8, 9, 10, 11, 12, 8, 20 ]; function isBigEnough( element, index, arra…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fteramako.hatenadiary.org%2Fentry%2F20070514%2Fp1&quot; title=&quot;Array.filter の使い方 - 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>2007-05-14 00:00:00</published>
  <title>Array.filter の使い方</title>
  <type>rich</type>
  <url>https://teramako.hatenadiary.org/entry/20070514/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
