<?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: channasmcs</title>
    <description>The latest articles on DEV Community by channasmcs (@channasmcs).</description>
    <link>https://dev.to/channasmcs</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%2F950749%2F0ad2db3c-76a8-44ee-a7b3-4f8cc840e65c.png</url>
      <title>DEV Community: channasmcs</title>
      <link>https://dev.to/channasmcs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/channasmcs"/>
    <language>en</language>
    <item>
      <title>Merge Multiple Array in to single Array</title>
      <dc:creator>channasmcs</dc:creator>
      <pubDate>Sun, 06 Nov 2022 12:05:34 +0000</pubDate>
      <link>https://dev.to/channasmcs/merge-multiple-array-in-to-single-array-4o30</link>
      <guid>https://dev.to/channasmcs/merge-multiple-array-in-to-single-array-4o30</guid>
      <description>&lt;p&gt;If you are merging arrays with multiple elements into a single variable, you can use pre-defined javascript operations such as concat , push, and spread operations.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;concat operation&lt;/strong&gt; creates a new array instead of changing existing arrays.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;push operation&lt;/strong&gt; append/adding new element end of an array and returns the new length of the array&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;spread operation&lt;/strong&gt; [ES6] combines your arrays and returns a NEW array.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Rendered performance&lt;/p&gt;

&lt;p&gt;Array concat getting significantly time slower than push operation. because it creates a new array and does the additional time spend to copy the first array over again and again.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vfp9n4HZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/df885fmb9uq5cjs47znr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vfp9n4HZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/df885fmb9uq5cjs47znr.png" alt="Image description" width="880" height="818"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>react</category>
    </item>
  </channel>
</rss>
