<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakahashi_h</author_name>
  <author_url>https://blog.hatena.ne.jp/nakahashi_h/</author_url>
  <blog_title>websandbag ブログ</blog_title>
  <blog_url>https://blog.websandbag.com/</blog_url>
  <categories>
    <anon>javascript</anon>
  </categories>
  <description>連想配列から特定のキーが指定した値に合致した配列のみ取得する方法です。 また、重複しない要素（例えばID等）の場合、結果は0か1のはずです。 そのため、最初一件のみ変数に代入する方法についてまとめます。 元データ [ { &quot;id&quot;: 1, &quot;name&quot;: &quot;name_1&quot; }, { &quot;id&quot;: 2, &quot;name&quot;: &quot;name_2&quot; }, { &quot;id&quot;: 3, &quot;name&quot;: &quot;name_3&quot; } ] パース処理 変数arraysに、jsonデータを入れた状態とします。 theaterID = 1 // 探すID target = arrays.filter(function(object) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.websandbag.com%2Fentry%2F2018%2F11%2F22%2F194516&quot; title=&quot;【javascript】連想配列から特定のキーに紐づく1配列のみ抽出する - websandbag ブログ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nakahashi_h/20181118/20181118011736.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-11-22 19:45:16</published>
  <title>【javascript】連想配列から特定のキーに紐づく1配列のみ抽出する</title>
  <type>rich</type>
  <url>https://blog.websandbag.com/entry/2018/11/22/194516</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
