<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Data-Structures on Ghafoor's Personal Blog</title><link>https://ghafoorsblog.com/tags/data-structures/</link><description>Recent content in Data-Structures on Ghafoor's Personal Blog</description><generator>Hugo</generator><language>en</language><managingEditor>hello@ghafoorsblog.com (AG Sayyed)</managingEditor><webMaster>hello@ghafoorsblog.com (AG Sayyed)</webMaster><copyright>Copyright © 2024-2026 AG Sayyed. All Rights Reserved.</copyright><lastBuildDate>Sun, 24 May 2026 09:13:13 +0100</lastBuildDate><atom:link href="https://ghafoorsblog.com/tags/data-structures/index.xml" rel="self" type="application/rss+xml"/><item><title>JavaScript Arrays — Creation, Iteration, and the Modern Method Toolkit</title><link>https://ghafoorsblog.com/posts/js/03-arrays/</link><pubDate>Sun, 01 Jun 2025 08:00:00 +0000</pubDate><author>hello@ghafoorsblog.com (AG Sayyed)</author><guid>https://ghafoorsblog.com/posts/js/03-arrays/</guid><description>&lt;h2 id="why-arrays-deserve-their-own-post"&gt;Why arrays deserve their own post&lt;/h2&gt;
&lt;p&gt;In JavaScript almost every collection eventually becomes an &lt;code&gt;Array&lt;/code&gt;. The DOM hands you array-like &lt;code&gt;NodeList&lt;/code&gt; objects, JSON payloads arrive as arrays, &lt;code&gt;Object.entries&lt;/code&gt; produces an array of pairs, and the language gives you a richer iteration toolkit on &lt;code&gt;Array.prototype&lt;/code&gt; than on any other built-in. Knowing arrays well — including their &lt;em&gt;sharp edges&lt;/em&gt; — pays back across every JavaScript codebase.&lt;/p&gt;
&lt;p&gt;This post assumes you have already met &lt;a
 href="https://ghafoorsblog.com/posts/js/02-variables/"
 
 &gt;JavaScript variables, scope, and hoisting&lt;/a&gt;. We will look at how arrays are created, how they really behave under the hood, the modern method toolkit, and the patterns the language now prefers.&lt;/p&gt;</description></item></channel></rss>