<?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>Forem: Bobokhon Rajabov</title>
    <description>The latest articles on Forem by Bobokhon Rajabov (@bobokhon7).</description>
    <link>https://forem.com/bobokhon7</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%2F809136%2F93aa6908-c554-4506-9017-f8a73fb8806a.png</url>
      <title>Forem: Bobokhon Rajabov</title>
      <link>https://forem.com/bobokhon7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/bobokhon7"/>
    <language>en</language>
    <item>
      <title>Flatten and sort an array 7 Kyu</title>
      <dc:creator>Bobokhon Rajabov</dc:creator>
      <pubDate>Thu, 04 Jan 2024 12:33:28 +0000</pubDate>
      <link>https://forem.com/bobokhon7/flatten-and-sort-an-array-7-kyu-5cm</link>
      <guid>https://forem.com/bobokhon7/flatten-and-sort-an-array-7-kyu-5cm</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function flattenAndSort(array) {
  return   array.flat().sort((a, b) =&amp;gt; a - b);
}

//answer [1, 2, 3, 4, 5,6, 7, 8,9]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;strong&gt;flat()&lt;/strong&gt; method creates a new array with sub-array elements concatenated to a specified depth and I am using &lt;strong&gt;sort()&lt;/strong&gt; method for order sequence.&lt;/p&gt;

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