<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/order</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 20 May 2013 07:28:27 GMT</pubDate>
<item>
<title>(JavaScript) Alternative for \"for...in\" loop - hellowouter</title>
<link>http://snipplr.com/view/64239/alternative-for-forin-loop/</link>
<description><![CDATA[ <p>We are setting up two variables. The assignment in the middle part of the for loop is also tested for truthfulness — if it succeeds, the loop continues. Since i is incremented each time, items from the array will be assigned to item in sequential order. The loop stops when a "falsy" item is found (such as undefined).

Note that this trick should only be used for arrays which you know do not contain "falsy" values (arrays of objects or DOM nodes for example). If you are iterating over numeric data that might include a 0 or string data that might include the empty string you should use a standard for loop.

Note that if someone added new properties to Array.prototype, using a "for...in" loop is no option since the loop will also iterate over the new prototype properties.</p> ]]></description>
<pubDate>Fri, 30 Mar 2012 19:10:51 GMT</pubDate>
<guid>http://snipplr.com/view/64239/alternative-for-forin-loop/</guid>
</item>
<item>
<title>(JavaScript) jStack - jQuery Event Stack Management - garside</title>
<link>http://snipplr.com/view/13515/jstack--jquery-event-stack-management/</link>
<description><![CDATA[ <p>Allows the user to bind an event into a certain position in the call stack for events.</p> ]]></description>
<pubDate>Fri, 27 Mar 2009 19:32:36 GMT</pubDate>
<guid>http://snipplr.com/view/13515/jstack--jquery-event-stack-management/</guid>
</item>
<item>
<title>(JavaScript) Javascript sort table - ginoplusio</title>
<link>http://snipplr.com/view/9852/javascript-sort-table/</link>
<description><![CDATA[ <p>sorting a table through javascript</p> ]]></description>
<pubDate>Mon, 17 Nov 2008 04:37:39 GMT</pubDate>
<guid>http://snipplr.com/view/9852/javascript-sort-table/</guid>
</item>
</channel>
</rss>