<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kimizuka</author_name>
  <author_url>https://blog.hatena.ne.jp/kimizuka/</author_url>
  <blog_title>みかづきブログ・カスタム</blog_title>
  <blog_url>https://blog.kimizuka.org/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>const target = 'user-8823'; const hasTarget = users.includes(target); みたいなコードで、要素の多いユニークな配列から、特定の要素が含まれているかを確認するコードを高速で動かそうと思った時に、 const target = 'user-8823'; const set = newSet(users); const hasTarget = set.has(target); みたいにSet.prototype.hasを使うことを検討したのですが、意外と、 const target = 'user-8823'; const str …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kimizuka.org%2Fentry%2F2025%2F03%2F06%2F183000&quot; title=&quot;要素の多いがユニークな配列に特定の要素が含まれているか調べるときにSet.prototype.hasを検討する 🔍 - みかづきブログ・カスタム&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/k/kimizuka/20201020/20201020140350.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-03-06 18:30:00</published>
  <title>要素の多いがユニークな配列に特定の要素が含まれているか調べるときにSet.prototype.hasを検討する 🔍</title>
  <type>rich</type>
  <url>https://blog.kimizuka.org/entry/2025/03/06/183000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
