<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ahmadou Waly NDIAYE</title>
    <description>The latest articles on DEV Community by Ahmadou Waly NDIAYE (@sir_kane).</description>
    <link>https://dev.to/sir_kane</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F70661%2Fd932d2b1-8d54-4303-9f22-9d2c34262597.jpg</url>
      <title>DEV Community: Ahmadou Waly NDIAYE</title>
      <link>https://dev.to/sir_kane</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sir_kane"/>
    <language>en</language>
    <item>
      <title>Why so much ".forEach() VS .map()" posts in javascript?</title>
      <dc:creator>Ahmadou Waly NDIAYE</dc:creator>
      <pubDate>Wed, 22 Jan 2020 20:24:21 +0000</pubDate>
      <link>https://dev.to/sir_kane/why-so-much-foreach-vs-map-posts-5fo9</link>
      <guid>https://dev.to/sir_kane/why-so-much-foreach-vs-map-posts-5fo9</guid>
      <description>&lt;p&gt;I saw many posts comparing .forEach() and .map(), but I have never seen a situation where we are faced with a problem of choice between these 2 APIs.&lt;/p&gt;

&lt;p&gt;Even if they both iterate through elements in an array, they stays totally different.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;map()&lt;/strong&gt; method creates a new array.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;forEach()&lt;/strong&gt; method executes a provided function once for each array element.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>discuss</category>
    </item>
  </channel>
</rss>
