<?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: Annaavh</title>
    <description>The latest articles on DEV Community by Annaavh (@annaav).</description>
    <link>https://dev.to/annaav</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%2F682985%2Fddb712aa-243d-4511-b482-961705033ac7.png</url>
      <title>DEV Community: Annaavh</title>
      <link>https://dev.to/annaav</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/annaav"/>
    <language>en</language>
    <item>
      <title>Why array.splice() method isn't working right? Which array method can help to solve the problem?</title>
      <dc:creator>Annaavh</dc:creator>
      <pubDate>Tue, 19 Oct 2021 10:24:51 +0000</pubDate>
      <link>https://dev.to/annaav/why-arraysplice-method-isnt-working-right-m39</link>
      <guid>https://dev.to/annaav/why-arraysplice-method-isnt-working-right-m39</guid>
      <description>&lt;p&gt;function foo(arr,num){&lt;br&gt;
  return arr.map((item,index,arr) =&amp;gt; {&lt;br&gt;
    return arr.splice(index,num)&lt;br&gt;
  })&lt;br&gt;
}&lt;br&gt;
console.log(foo([1, 2, 3, 4, 5], 2))&lt;br&gt;
//The expected output should be [[1,2],[3,4],[5]]&lt;br&gt;
//In this case output is [[1,2],[4,5]]&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>array</category>
      <category>arraymethods</category>
    </item>
  </channel>
</rss>
