<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>TypedArray.prototype.map(...) 変換結果がUint8→予想通りの結果 変換結果が文字列等→予想外の結果（e.g. [0, 0, 0, ...]） TypedArray.prototype.mapの戻り値はTypedArrayであり、各要素はTypedArrayの要素型に変換されます。例えばUint8Array.prototype.mapメソッドの戻り値はUint8Arrayであり、各要素はUint8へ変換されます。Arrayのmapメソッドと同じ感覚で文字列へ変換した場合、戻り値はすべて0のTypedArrayになります。 上記は[...Array]やArray.f…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2020%2F10%2F22%2F190953&quot; title=&quot;JavaScript TypedArrayのmapメソッドの注意（強制的な型変換） - potisanのプログラミングメモ&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>2020-10-22 19:09:53</published>
  <title>JavaScript TypedArrayのmapメソッドの注意（強制的な型変換）</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2020/10/22/190953</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
