<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yucatio</author_name>
  <author_url>https://blog.hatena.ne.jp/yucatio/</author_url>
  <blog_title>yucatio@システムエンジニア</blog_title>
  <blog_url>https://yucatio.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>JavaScriptにzip関数がなかったので実装してみました。以下のように、各配列の同じインデックスの要素をまとめます。 const a1 = [1, 2, 3] const a2 = [&quot;Jan&quot;, &quot;Feb&quot;, &quot;Mar&quot;] const a3 = [&quot;Garnet&quot;, &quot;Amethyst&quot;, &quot;Aquamarine&quot;] zip(a1, a2, a3) #=&gt; [[1, &quot;Jan&quot;, &quot;Garnet&quot;], [2, &quot;Feb&quot;, &quot;Amethyst&quot;], [3, &quot;Mar&quot;, &quot;Aquamarine&quot;]] 各配列の長さが異なる場合には、一番短い配列の長さに切り詰められます。 const a1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyucatio.hatenablog.com%2Fentry%2F2020%2F02%2F06%2F085930&quot; title=&quot;JavaScriptでPython風のzip関数を実装する - yucatio@システムエンジニア&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-02-06 08:59:30</published>
  <title>JavaScriptでPython風のzip関数を実装する</title>
  <type>rich</type>
  <url>https://yucatio.hatenablog.com/entry/2020/02/06/085930</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
