<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>madogiwa0124</author_name>
  <author_url>https://blog.hatena.ne.jp/madogiwa0124/</author_url>
  <blog_title>Madogiwa Blog</blog_title>
  <blog_url>https://madogiwa0124.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>開発</anon>
    <anon>フロントエンド</anon>
  </categories>
  <description>URLSearchParamsを使って{ tile: &quot;sample&quot;, ids: [1, 2] }みたいなObjectを?title=sample&amp;ids[]=1&amp;ids[]=2みたいな文字列に変換する方法でハマったのでメモ📝 URLSearchParamsを使うといい感じにobjectをURLパラメーターに変換できますが、 developer.mozilla.org new URLSearchParams({ foo: &quot;1&quot;, bar: &quot;2&quot; }).toString() 'foo=1&amp;bar=2' URLSearchParamsの渡すobjectに配列が含まれていると以下の通り文字列の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmadogiwa0124.hatenablog.com%2Fentry%2F2023%2F09%2F02%2F133617&quot; title=&quot;JavaScript: `URLSearchParams`でArrayを含むObjectをいい感じの配列のURLパラメーター(`key[]=value`)に変換する方法MEMO - Madogiwa Blog&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>2023-09-02 13:36:17</published>
  <title>JavaScript: `URLSearchParams`でArrayを含むObjectをいい感じの配列のURLパラメーター(`key[]=value`)に変換する方法MEMO</title>
  <type>rich</type>
  <url>https://madogiwa0124.hatenablog.com/entry/2023/09/02/133617</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
