<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Аналог foreach в javascript</title>
	<atom:link href="http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html/feed" rel="self" type="application/rss+xml" />
	<link>http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html</link>
	<description>Все о высоких технологиях</description>
	<lastBuildDate>Fri, 25 Nov 2011 21:14:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Евгений</title>
		<link>http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-4119</link>
		<dc:creator>Евгений</dc:creator>
		<pubDate>Fri, 18 Nov 2011 19:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-4119</guid>
		<description>В добавок, что касается массива:

var arr = [1,2,3,4,5];
arr.forEach(function(val) {
   alert(val);
});</description>
		<content:encoded><![CDATA[<p>В добавок, что касается массива:</p>
<p>var arr = [1,2,3,4,5];<br />
arr.forEach(function(val) {<br />
   alert(val);<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihalytch</title>
		<link>http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-966</link>
		<dc:creator>Mihalytch</dc:creator>
		<pubDate>Thu, 18 Aug 2011 11:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-966</guid>
		<description>Спасибо дружище! Добавлю в пост =)</description>
		<content:encoded><![CDATA[<p>Спасибо дружище! Добавлю в пост =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vitaliy Ivaschenko</title>
		<link>http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-965</link>
		<dc:creator>Vitaliy Ivaschenko</dc:creator>
		<pubDate>Thu, 18 Aug 2011 11:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-965</guid>
		<description>Также (если использовать jQuery) foreach можно реализовать так:

var map = { 
  &#039;flammable&#039;: &#039;inflammable&#039;, 
  &#039;duh&#039;: &#039;no duh&#039; 
}; 
$.each(map, function(key, value) { 
  alert(key + &#039;: &#039; + value); 
});</description>
		<content:encoded><![CDATA[<p>Также (если использовать jQuery) foreach можно реализовать так:</p>
<p>var map = {<br />
  &#8216;flammable&#8217;: &#8216;inflammable&#8217;,<br />
  &#8216;duh&#8217;: &#8216;no duh&#8217;<br />
};<br />
$.each(map, function(key, value) {<br />
  alert(key + &#8216;: &#8216; + value);<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Антон</title>
		<link>http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-739</link>
		<dc:creator>Антон</dc:creator>
		<pubDate>Wed, 13 Oct 2010 12:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-739</guid>
		<description>Однако следует учесть, что вообще-то конструкция for (.. in ..) в javascript предназначена для перебора свойств объектов а не элементов массива. Постольку поскольку, например, в любом месте прототипу объекта atrray могут быть добавлены новые свойства и они тоже попадут в эту выборку вместе с элементами массива, поломав логику вашего скрипта...</description>
		<content:encoded><![CDATA[<p>Однако следует учесть, что вообще-то конструкция for (.. in ..) в javascript предназначена для перебора свойств объектов а не элементов массива. Постольку поскольку, например, в любом месте прототипу объекта atrray могут быть добавлены новые свойства и они тоже попадут в эту выборку вместе с элементами массива, поломав логику вашего скрипта&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Дима</title>
		<link>http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-722</link>
		<dc:creator>Дима</dc:creator>
		<pubDate>Tue, 31 Aug 2010 20:17:33 +0000</pubDate>
		<guid isPermaLink="false">http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-722</guid>
		<description>Спасибо большое!</description>
		<content:encoded><![CDATA[<p>Спасибо большое!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-714</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Wed, 21 Jul 2010 08:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-714</guid>
		<description>Спасибо - то что надо!</description>
		<content:encoded><![CDATA[<p>Спасибо &#8211; то что надо!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Holy Diver</title>
		<link>http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-504</link>
		<dc:creator>Holy Diver</dc:creator>
		<pubDate>Fri, 15 Jan 2010 20:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-504</guid>
		<description>Спасибо, а то всё никак не привыкну к JS синтаксису</description>
		<content:encoded><![CDATA[<p>Спасибо, а то всё никак не привыкну к JS синтаксису</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Артур</title>
		<link>http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-469</link>
		<dc:creator>Артур</dc:creator>
		<pubDate>Sat, 21 Nov 2009 15:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://mihalytch.org.ua/programming/php/analogue-foreach-in-javascript.html#comment-469</guid>
		<description>Спасибо, полезная информация о JS.</description>
		<content:encoded><![CDATA[<p>Спасибо, полезная информация о JS.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

