<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iterable | Bogdan's blog</title>
	<atom:link href="https://blog.bogdancarpean.com/tag/iterable/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.bogdancarpean.com</link>
	<description>Code and anything else.</description>
	<lastBuildDate>Mon, 01 Jun 2020 16:36:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>

<image>
	<url>https://blog.bogdancarpean.com/wp-content/uploads/2022/12/icons8-pencil-drawing-96.png</url>
	<title>iterable | Bogdan's blog</title>
	<link>https://blog.bogdancarpean.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Javascript for of index</title>
		<link>https://blog.bogdancarpean.com/javascript-for-of-index/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=javascript-for-of-index</link>
					<comments>https://blog.bogdancarpean.com/javascript-for-of-index/#respond</comments>
		
		<dc:creator><![CDATA[Bogdan]]></dc:creator>
		<pubDate>Mon, 01 Jun 2020 16:36:25 +0000</pubDate>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[for of]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[iterable]]></category>
		<category><![CDATA[js]]></category>
		<guid isPermaLink="false">https://blog.bogdancarpean.com/?p=376</guid>

					<description><![CDATA[<p>Starting with ECMA 6 we have a new loop iterating statement in the form of for&#8230;of. This helps us to loop thru an iterable object (array, string, map, set&#8230;) in a simpler fashion than the classic for loop. To achieve this, we are going to use the entries() method of the Array: for (const [index, [&#8230;]</p>
The post <a href="https://blog.bogdancarpean.com/javascript-for-of-index/">Javascript for of index</a> first appeared on <a href="https://blog.bogdancarpean.com">Bogdan's blog</a>.]]></description>
										<content:encoded><![CDATA[<p>Starting with ECMA 6 we have a new loop iterating statement in the form of <strong>for&#8230;of</strong>. This helps us to loop thru an iterable object (array, string, map, set&#8230;) in a simpler fashion than the classic <strong>for</strong> loop.</p>
<p>To achieve this, we are going to use the <strong>entries()</strong> method of the Array:</p>
<pre>for (const [index, element] of myArray.entries()) {
  console.log(index, element)
}</pre>The post <a href="https://blog.bogdancarpean.com/javascript-for-of-index/">Javascript for of index</a> first appeared on <a href="https://blog.bogdancarpean.com">Bogdan's blog</a>.]]></content:encoded>
					
					<wfw:commentRss>https://blog.bogdancarpean.com/javascript-for-of-index/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
