<?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: Abhishek Gowda</title>
    <description>The latest articles on DEV Community by Abhishek Gowda (@abhishekgowda28).</description>
    <link>https://dev.to/abhishekgowda28</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%2F514754%2Fc1cbacd9-b356-499e-8776-42afc93e75a6.png</url>
      <title>DEV Community: Abhishek Gowda</title>
      <link>https://dev.to/abhishekgowda28</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abhishekgowda28"/>
    <language>en</language>
    <item>
      <title>🔖 How I Keep My Bookmarks in Sync (Without Yet Another Bookmarking App)</title>
      <dc:creator>Abhishek Gowda</dc:creator>
      <pubDate>Sat, 04 Oct 2025 18:07:11 +0000</pubDate>
      <link>https://dev.to/abhishekgowda28/how-i-keep-my-bookmarks-in-sync-without-yet-another-bookmarking-app-47on</link>
      <guid>https://dev.to/abhishekgowda28/how-i-keep-my-bookmarks-in-sync-without-yet-another-bookmarking-app-47on</guid>
      <description>&lt;p&gt;I’ve tried more bookmark managers than I care to admit — and none of them &lt;em&gt;felt&lt;/em&gt; right.&lt;/p&gt;

&lt;p&gt;Either I needed to open a separate app, install another extension, or use a web dashboard just to save a link. I didn’t want that. I simply wanted my &lt;strong&gt;browser’s native bookmarks&lt;/strong&gt; to stay in sync — across my laptop, work machine, and phone — without giving my data away to some random cloud service.&lt;/p&gt;

&lt;p&gt;Then I came across &lt;strong&gt;&lt;a href="https://floccus.org/" rel="noopener noreferrer"&gt;Floccus&lt;/a&gt;&lt;/strong&gt; — and everything clicked.&lt;/p&gt;




&lt;h2&gt;
  
  
  🌍 What Floccus Does
&lt;/h2&gt;

&lt;p&gt;Floccus syncs bookmarks across browsers and devices. It works with &lt;strong&gt;Git&lt;/strong&gt;, &lt;strong&gt;Nextcloud&lt;/strong&gt;, or &lt;strong&gt;WebDAV&lt;/strong&gt; as backends — all open, privacy-friendly systems.&lt;/p&gt;

&lt;p&gt;It supports Chrome, Firefox, Edge, and even has an Android app.&lt;br&gt;
If you prefer the official docs, check the &lt;a href="https://floccus.org/guides" rel="noopener noreferrer"&gt;Floccus guides&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;But if you want to see &lt;em&gt;my personal setup&lt;/em&gt;, here’s how I got everything working.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧩 Setting Things Up
&lt;/h2&gt;

&lt;p&gt;First, install the extension for your browser from the &lt;a href="https://floccus.org/download" rel="noopener noreferrer"&gt;Floccus downloads page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Floccus lets you create &lt;strong&gt;profiles&lt;/strong&gt;, which act like separate sync channels. You can use one for backup, one for work, another for personal, and so on.&lt;/p&gt;




&lt;h3&gt;
  
  
  Step 1: Git Sync (for Backup and Versioning)
&lt;/h3&gt;

&lt;p&gt;I started with &lt;strong&gt;GitHub&lt;/strong&gt; because I already use it for everything else.&lt;br&gt;
You can use GitLab or any Git service you like.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a new Git repo (public or private).&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/settings/personal-access-tokens" rel="noopener noreferrer"&gt;Generate a Personal Access Token&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Open the Floccus extension → click &lt;strong&gt;Add profile&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Choose &lt;strong&gt;Git over HTTPS&lt;/strong&gt;, give it a name.&lt;/li&gt;
&lt;li&gt;Enter your repo URL and GitHub username.&lt;/li&gt;
&lt;li&gt;Paste your Personal Access Token as the password.&lt;/li&gt;
&lt;li&gt;Follow the on-screen prompts.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And done — bookmarks now sync with Git.&lt;br&gt;
It also doubles as a backup since every change is versioned.&lt;/p&gt;

&lt;p&gt;To add another browser: just repeat steps 3–7 and perform a &lt;strong&gt;pull&lt;/strong&gt; to get your existing bookmarks.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;🧠 Quick note: Git sync doesn’t work with the mobile app.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  To include your phone in the loop, you’ll need WebDAV.
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 2: WebDAV Sync (for Mobile + Browser Sync)
&lt;/h3&gt;

&lt;p&gt;For full cross-device sync, I use &lt;strong&gt;&lt;a href="https://filelu.com/5250545651.html" rel="noopener noreferrer"&gt;FileLu&lt;/a&gt;&lt;/strong&gt;.&lt;br&gt;
It offers free WebDAV access, which is perfect for Floccus.&lt;/p&gt;

&lt;p&gt;Here’s the quick setup:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Log in to &lt;a href="https://filelu.com/account/" rel="noopener noreferrer"&gt;your FileLu account&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Scroll to &lt;strong&gt;Cloud Drive WebDAV&lt;/strong&gt; and toggle it ON.&lt;/li&gt;
&lt;li&gt;Go back to the Floccus extension → click &lt;strong&gt;Add profile&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;WebDAV share&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Enter this WebDAV link:&lt;code&gt;https://webdav.filelu.com&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Add your FileLu username and password.&lt;/li&gt;
&lt;li&gt;Follow the prompts — and you’re synced!&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This profile now handles cross-device syncing between browsers and your phone.&lt;/p&gt;




&lt;h3&gt;
  
  
  📱 Setting Up Floccus on Mobile
&lt;/h3&gt;

&lt;p&gt;Floccus has an Android app available on &lt;a href="https://f-droid.org/en/packages/org.handmadeideas.floccus/" rel="noopener noreferrer"&gt;F-Droid&lt;/a&gt; and the Play Store.&lt;/p&gt;

&lt;p&gt;Here’s how I use it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install the app.&lt;/li&gt;
&lt;li&gt;Tap &lt;strong&gt;Add profile&lt;/strong&gt; → choose &lt;strong&gt;WebDAV share&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Use the same credentials and link as your browser profile.&lt;/li&gt;
&lt;li&gt;Tap &lt;strong&gt;Sync&lt;/strong&gt; — and that’s it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The folder structure might look slightly different from desktop browsers, but the syncing works beautifully.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧭 Why This Works for Me
&lt;/h2&gt;

&lt;p&gt;With this setup:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Git&lt;/strong&gt; acts as my safe, versioned backup.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;WebDAV&lt;/strong&gt; keeps my bookmarks synced across all devices.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Floccus&lt;/strong&gt; makes it all feel invisible — no extra tabs, no cloud logins, no friction.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8nefvoqb8hmt3aujjmhx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8nefvoqb8hmt3aujjmhx.png" alt="Floccus setup" width="800" height="320"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It’s the first time bookmarking feels truly &lt;em&gt;mine&lt;/em&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  ☕ Final Thoughts
&lt;/h2&gt;

&lt;p&gt;I’ve been using this setup for a while now, and it just works.&lt;br&gt;
It’s lightweight, free and respects privacy.&lt;/p&gt;

&lt;p&gt;If you’re tired of proprietary bookmark managers or syncing nightmares, give Floccus a shot.&lt;br&gt;
Happy bookmarking 🔖&lt;/p&gt;

&lt;p&gt;And if you’ve found another clever way to sync bookmarks, I’d love to hear about it.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>cloud</category>
      <category>github</category>
      <category>resources</category>
    </item>
    <item>
      <title>Maintaining multiple ssh keys for git</title>
      <dc:creator>Abhishek Gowda</dc:creator>
      <pubDate>Mon, 14 Jul 2025 12:20:31 +0000</pubDate>
      <link>https://dev.to/abhishekgowda28/maintaining-multiple-ssh-keys-for-git-1g4p</link>
      <guid>https://dev.to/abhishekgowda28/maintaining-multiple-ssh-keys-for-git-1g4p</guid>
      <description>&lt;p&gt;I like to maintain multiple git accounts, one for Github and other for gitlab. I use gitlab to host my much private data in it. And only try to host that I feel safe to be online on with Github.&lt;br&gt;
I will walk you through how to maintain multiple ssh key that could be used for different git accounts.&lt;br&gt;
This is more specific on using ssh for git authentication.&lt;/p&gt;
&lt;h2&gt;
  
  
  Generation of SSH keys.
&lt;/h2&gt;

&lt;p&gt;For windows install git-bash, to get working with git on windows. Once this is done. We generate keys using ssh-keygen&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-keygen &lt;span class="nt"&gt;-t&lt;/span&gt; ed25519 &lt;span class="nt"&gt;-C&lt;/span&gt; &lt;span class="s2"&gt;"personal_email@gitlab.com"&lt;/span&gt; &lt;span class="nt"&gt;-f&lt;/span&gt; ~/.ssh/id_ed25519_gitlab

ssh-keygen &lt;span class="nt"&gt;-t&lt;/span&gt; ed25519 &lt;span class="nt"&gt;-C&lt;/span&gt; &lt;span class="s2"&gt;"personal_email@github.com"&lt;/span&gt; &lt;span class="nt"&gt;-f&lt;/span&gt; ~/.ssh/id_ed25519_github
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This generates public and private keys. This keys are generally present in home directory (even in windows) under .ssh directory&lt;/p&gt;

&lt;h2&gt;
  
  
  Adding keys to ssh-agent
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;eval&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;ssh-agent &lt;span class="nt"&gt;-s&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add the keys to&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-add ~/.ssh/id_ed25519_gitlab
ssh-add ~/.ssh/id_ed25519_github
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Why I need to add these? For 1, you do not want to enter your phase key again, every time you start a new session. It would be wise to add these to rc (Run Command) files, like &lt;code&gt;.bashrc&lt;/code&gt; and &lt;code&gt;.zshrc&lt;/code&gt;. &lt;/p&gt;

&lt;h2&gt;
  
  
  Update .ssh/config file
&lt;/h2&gt;

&lt;p&gt;This is the important step. Now we need to tell which keys to use when we connect to the remote host.&lt;br&gt;
This is a property file, be careful with the spacings. Use # for adding comments&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="c"&gt;# Github
&lt;/span&gt;&lt;span class="err"&gt;Host&lt;/span&gt; &lt;span class="err"&gt;github.com&lt;/span&gt;
    &lt;span class="err"&gt;HostName&lt;/span&gt; &lt;span class="err"&gt;github.com&lt;/span&gt;
    &lt;span class="err"&gt;User&lt;/span&gt; &lt;span class="err"&gt;git&lt;/span&gt;
    &lt;span class="err"&gt;IdentityFile&lt;/span&gt; &lt;span class="err"&gt;~/.ssh/id_ed25519_github&lt;/span&gt;

&lt;span class="c"&gt;# Gitlab
&lt;/span&gt;&lt;span class="err"&gt;Host&lt;/span&gt; &lt;span class="err"&gt;gitlab.com&lt;/span&gt;
    &lt;span class="err"&gt;HostName&lt;/span&gt; &lt;span class="err"&gt;gitlab.com&lt;/span&gt;
    &lt;span class="err"&gt;User&lt;/span&gt; &lt;span class="err"&gt;git&lt;/span&gt;
    &lt;span class="err"&gt;IdentityFile&lt;/span&gt; &lt;span class="err"&gt;~/.ssh/id_ed25519_gitlab&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is other way of seeing as well, adding context to the Host itself. Let say you are working on a machine provided by an organization and want to just check your own repository now and then, but don't want to use keys and user-names of the organization. We can do the following&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="c"&gt;# Work
&lt;/span&gt;&lt;span class="err"&gt;Host&lt;/span&gt; &lt;span class="err"&gt;github.com-work&lt;/span&gt;
    &lt;span class="err"&gt;HostName&lt;/span&gt; &lt;span class="err"&gt;github.com&lt;/span&gt;
    &lt;span class="err"&gt;User&lt;/span&gt; &lt;span class="err"&gt;git&lt;/span&gt;
    &lt;span class="err"&gt;IdentityFile&lt;/span&gt; &lt;span class="err"&gt;~/.ssh/id_ed25519_github_work&lt;/span&gt;

&lt;span class="c"&gt;# Personal
&lt;/span&gt;&lt;span class="err"&gt;Host&lt;/span&gt; &lt;span class="err"&gt;github.com-personal&lt;/span&gt;
    &lt;span class="err"&gt;HostName&lt;/span&gt; &lt;span class="err"&gt;github.com&lt;/span&gt;
    &lt;span class="err"&gt;User&lt;/span&gt; &lt;span class="err"&gt;git&lt;/span&gt;
    &lt;span class="err"&gt;IdentityFile&lt;/span&gt; &lt;span class="err"&gt;~/.ssh/id_ed25519_github_personal&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now when we access the repository we provide context. &lt;/p&gt;

&lt;h2&gt;
  
  
  Update public keys to services
&lt;/h2&gt;

&lt;p&gt;Now we have created our keys, we need to publish the public key to the service, so it used used when authenticating.&lt;br&gt;
Copy the public key of github, you will see &lt;code&gt;.pub&lt;/code&gt; at the end of the keys.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat&lt;/span&gt; ~/.ssh/id_ed25519_github
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now go to &lt;a href="https://github.com/settings/keys" rel="noopener noreferrer"&gt;Github -&amp;gt; Settings -&amp;gt; SSH and GPG keys&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now copy the public key of gitlab&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat&lt;/span&gt; ~/.ssh/id_ed25519_gitlab
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now go to &lt;a href="https://gitlab.com/-/user_settings/ssh_keys" rel="noopener noreferrer"&gt;Gitlab -&amp;gt; Preferences -&amp;gt; SSH Keys&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Verify connection
&lt;/h2&gt;

&lt;p&gt;Once the keys are added, it is good practice to check the connections.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-T&lt;/span&gt; git@github.com 
ssh &lt;span class="nt"&gt;-T&lt;/span&gt; git@gitlab.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure to use right Host, if you have setup with "-work" and "-personal", use them&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh &lt;span class="nt"&gt;-T&lt;/span&gt; git@github.com-personal
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This should display the username, the keys were added to.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using correct host names
&lt;/h2&gt;

&lt;p&gt;Now when I use gitlab I will do something like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone git@gitlab.com:my-name/repo.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But when we have multiple github accounts, we could use the context I mentioned before to identify which ssh-key to use, like&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone git@github.com-work:yourcompany/repo.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Updating git config
&lt;/h2&gt;

&lt;p&gt;With the above steps, we are complete with setting up ssh. Which is used for authentication.&lt;br&gt;
Now we would want to update gitconfig. Run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git config user.name
git config user.email
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;commands. This will give the global name and email used. We would need to update our local name and local email, as they would want to reflect in the git logs.&lt;br&gt;
Make sure you are in the repository where you want the name to be updated.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git config &lt;span class="nt"&gt;--local&lt;/span&gt; user.name &lt;span class="s2"&gt;"&amp;lt;USER_NAME&amp;gt;"&lt;/span&gt;
git config &lt;span class="nt"&gt;--local&lt;/span&gt; user.email &lt;span class="s2"&gt;"&amp;lt;private_email@example.com&amp;gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Leave any questions or suggestions you want to answer or improve on.&lt;/p&gt;

</description>
      <category>git</category>
      <category>ssh</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Array.Map vs For...loop</title>
      <dc:creator>Abhishek Gowda</dc:creator>
      <pubDate>Sun, 08 Jun 2025 07:50:46 +0000</pubDate>
      <link>https://dev.to/abhishekgowda28/arraymap-vs-forloop-34b3</link>
      <guid>https://dev.to/abhishekgowda28/arraymap-vs-forloop-34b3</guid>
      <description>&lt;p&gt;I was solving a problem and saw when I used Array.map the execution was lagging a bit. And thought to switch to using for...loop, as I was not doing any complicated calculation within map callback.&lt;/p&gt;

&lt;p&gt;This is the sample benchmark data I used&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And I did not do anything fancy, just pushed it to an array, similar to map where is returns us a new array.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frhr1vu97bnw16tyb4mkg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frhr1vu97bnw16tyb4mkg.png" alt="Map and for loop beanching marking" width="800" height="175"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Compared it using &lt;a href="https://js-perf.web.app/" rel="noopener noreferrer"&gt;JS Perf&lt;/a&gt; and saw that for..loop is ~25 times faster than map.&lt;/p&gt;

&lt;p&gt;I would not be switching to for..loop because of this, a good to know when there is a slow down in the application.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>performance</category>
      <category>typescript</category>
      <category>development</category>
    </item>
  </channel>
</rss>
