<?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: Uifoxes</title>
    <description>The latest articles on DEV Community by Uifoxes (@saheb24027824).</description>
    <link>https://dev.to/saheb24027824</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%2F657239%2F3f58fe39-4003-433f-a374-f66b80c94b22.jpeg</url>
      <title>DEV Community: Uifoxes</title>
      <link>https://dev.to/saheb24027824</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/saheb24027824"/>
    <language>en</language>
    <item>
      <title>Spread Operator in JavaScript</title>
      <dc:creator>Uifoxes</dc:creator>
      <pubDate>Sat, 24 Jul 2021 11:58:03 +0000</pubDate>
      <link>https://dev.to/saheb24027824/spread-operator-in-javascript-16ba</link>
      <guid>https://dev.to/saheb24027824/spread-operator-in-javascript-16ba</guid>
      <description>&lt;p&gt;What is spread operator in Javascript ?&lt;br&gt;
Spread Operator allows you to spread out the elements of an iterable object such as Array.&lt;/p&gt;

&lt;p&gt;Syntax : [ ... Array ]&lt;/p&gt;

&lt;p&gt;When to use spread operator ?&lt;br&gt;
Suppose you have a array and you want to clone it.&lt;/p&gt;

&lt;p&gt;let x  =  [1,2,3,4,5];&lt;br&gt;
let y = x;&lt;br&gt;
The above code is not cloning , x sets a reference to y , if the value of x gets changed the the value of y will also get changed. &lt;/p&gt;

&lt;p&gt;There are many ways to can clone array in javascript&lt;/p&gt;

&lt;p&gt;let x = [1,2,3,4,5];&lt;br&gt;
let y = Object.assign([],x);&lt;/p&gt;

&lt;p&gt;console.log(y);&lt;/p&gt;

&lt;p&gt;//Output : [1,2,3,4,5]&lt;/p&gt;

&lt;p&gt;Source : &lt;a href="https://codelearningpoint.com/"&gt;https://codelearningpoint.com/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Remove duplicates from array in javascript</title>
      <dc:creator>Uifoxes</dc:creator>
      <pubDate>Sat, 24 Jul 2021 11:56:46 +0000</pubDate>
      <link>https://dev.to/saheb24027824/remove-duplicates-from-array-in-javascript-1np1</link>
      <guid>https://dev.to/saheb24027824/remove-duplicates-from-array-in-javascript-1np1</guid>
      <description>&lt;p&gt;You can use filter() method to remove duplicates from array , if the index of the element gets matched with the indexOf value then only that element will get added.&lt;/p&gt;

&lt;p&gt;let data = [1, 2, 3, 2, 1];&lt;/p&gt;

&lt;p&gt;let uniqueData = data.filter((c, index) =&amp;gt; {&lt;br&gt;
    return data.indexOf(c) == index;&lt;br&gt;
});&lt;/p&gt;

&lt;p&gt;console.log(uniqueData);&lt;/p&gt;

&lt;p&gt;Output - [ 1, 2, 3 ]&lt;/p&gt;

&lt;p&gt;Source : &lt;a href="https://codelearningpoint.com/"&gt;https://codelearningpoint.com/&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
