<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>LINQ to JavaScript</title><link>http://www.codeplex.com/JSLINQ/Project/ProjectRss.aspx</link><description>LINQ to JavaScript &amp;#40;JSLINQ&amp;#41; is an implementation of LINQ to Objects implemented in JavaScript. It is built using a set of extension methods built on top of the JavaScript Array object. If you are u...</description><item><title>New Post: JSLINQ and LIKE Operation?</title><link>http://www.codeplex.com/JSLINQ/Thread/View.aspx?ThreadId=30253</link><description>&lt;div style="line-height: normal;"&gt;Did JSLINQ support 'Like' operation? if yes can anyone give any idea how to use it?&lt;br&gt;
&lt;/div&gt;</description><author>shoaibshaikh</author><pubDate>Wed, 25 Jun 2008 12:53:16 GMT</pubDate><guid isPermaLink="false">New Post: JSLINQ and LIKE Operation? 20080625125316P</guid></item><item><title>CREATED ISSUE: few more missing 'var' keywords</title><link>http://www.codeplex.com/JSLINQ/WorkItem/View.aspx?WorkItemId=1225</link><description>same as the item about the Distinct for loop goes for line 206, 227&lt;br /&gt;</description><author>666shooter</author><pubDate>Sun, 02 Mar 2008 16:13:08 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: few more missing 'var' keywords 20080302041308P</guid></item><item><title>CREATED ISSUE: missing 'var' in for loop</title><link>http://www.codeplex.com/JSLINQ/WorkItem/View.aspx?WorkItemId=1224</link><description>minor issue&amp;#58;&lt;br /&gt;in the Distinct function on line 177 the i variable is missing the &amp;#39;var&amp;#39; keyword.&lt;br /&gt;&lt;br /&gt;for &amp;#40;i &amp;#61; 0&amp;#59; i &amp;#60; this.length&amp;#59; i&amp;#43;&amp;#43;&amp;#41;&lt;br /&gt;&lt;br /&gt;should be&amp;#58;&lt;br /&gt;&lt;br /&gt;for &amp;#40;var i &amp;#61; 0&amp;#59; i &amp;#60; this.length&amp;#59; i&amp;#43;&amp;#43;&amp;#41;&lt;br /&gt;</description><author>666shooter</author><pubDate>Sun, 02 Mar 2008 16:10:30 GMT</pubDate><guid isPermaLink="false">CREATED ISSUE: missing 'var' in for loop 20080302041030P</guid></item><item><title>UPDATED RELEASE: v1.03 (Feb 10, 2008)</title><link>http://www.codeplex.com/JSLINQ/Release/ProjectReleases.aspx?ReleaseId=10625</link><description>&amp;#42; Added Intersect Operator&lt;br /&gt;&amp;#42; Added DefaultIfEmpty Operator&lt;br /&gt;&amp;#42; Added ElementAtOrDefault Operator&lt;br /&gt;&amp;#42; Added FirstOrDefault Operator&lt;br /&gt;&amp;#42; Added LastOrDefault Operator&lt;br /&gt;&amp;#42; Started adding Usage Examples&lt;br /&gt;&amp;#42;&amp;#42; Count Word Occurrences&lt;br /&gt;&amp;#42;&amp;#42; Count Set of Words</description><author></author><pubDate>Sun, 10 Feb 2008 21:47:53 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: v1.03 (Feb 10, 2008) 20080210094753P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/JSLINQ/Wiki/View.aspx?title=Home&amp;version=14</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;LINQ to JavaScript &amp;#40;JSLINQ&amp;#41; is an implementation of LINQ to Objects implemented in JavaScript. It is built using a set of extension methods built on top of the JavaScript Array object. If you are using an Array, you can use LINQ to JavaScript.
&lt;br /&gt; &lt;br /&gt;View Interactive SDK: &lt;a href="http://simplovation.com/jslinqsdk/" class="externalLink"&gt;http://simplovation.com/jslinqsdk/&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;This project is maintained by Chris Pietschmann (&lt;a href="http://pietschsoft.com" class="externalLink"&gt;http://pietschsoft.com&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;), and sponsored by Simplovation &lt;a href="http://simplovation.com" class="externalLink"&gt;http://simplovation.com&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
What is LINQ to JavaScript?
&lt;/h2&gt; &lt;br /&gt;LINQ to JavaScript (JSLINQ for short) is an implementation of LINQ to Objects implemented in JavaScript. It is built using a set of extension methods built on top of the JavaScript Array object. If you are using an Array, you can use JSLINQ.&lt;br /&gt; &lt;br /&gt;If you don't know what LINQ is; it's a new featureset in the .NET Framework 3.5 that allows more SQL-like querying of any kind of data. In the case of LINQ to JavaScript, it provides the ability to query against Arrays.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Example Usage&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
var myList = [
            {FirstName:&amp;quot;Chris&amp;quot;,LastName:&amp;quot;Pearson&amp;quot;},
            {FirstName:&amp;quot;Kate&amp;quot;,LastName:&amp;quot;Johnson&amp;quot;},
            {FirstName:&amp;quot;Josh&amp;quot;,LastName:&amp;quot;Sutherland&amp;quot;},
            {FirstName:&amp;quot;John&amp;quot;,LastName:&amp;quot;Ronald&amp;quot;},
            {FirstName:&amp;quot;Steve&amp;quot;,LastName:&amp;quot;Pinkerton&amp;quot;}
            ];
            
var exampleArray = From(myList).
                   Where(&amp;quot;item.FirstName == 'Chris'&amp;quot;).
                   OrderBy(&amp;quot;item.FirstName&amp;quot;).
                   Select(&amp;quot;item.FirstName&amp;quot;);
&lt;/pre&gt; &lt;br /&gt;&lt;h2&gt;
Using LINQ to JavaScript
&lt;/h2&gt;We will use this Array for the following examples:&lt;br /&gt;&lt;pre&gt;
var myList = [
            {FirstName:&amp;quot;Chris&amp;quot;,LastName:&amp;quot;Pearson&amp;quot;},
            {FirstName:&amp;quot;Kate&amp;quot;,LastName:&amp;quot;Johnson&amp;quot;},
            {FirstName:&amp;quot;Josh&amp;quot;,LastName:&amp;quot;Sutherland&amp;quot;},
            {FirstName:&amp;quot;John&amp;quot;,LastName:&amp;quot;Ronald&amp;quot;},
            {FirstName:&amp;quot;Steve&amp;quot;,LastName:&amp;quot;Pinkerton&amp;quot;}
            ];
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Use the From operator just as you would in LINQ in .NET&lt;/b&gt;&lt;br /&gt;The From operator is optional, and only included in LINQ to JavaScript to be able to support the same syntax as LINQ.&lt;br /&gt;&lt;pre&gt;
var example = From(myList);
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Using the Where operator to specify query criteria&lt;/b&gt;&lt;br /&gt;In this case, we're getting all items in the Array that have FirstName property set to Chris.&lt;br /&gt;&lt;pre&gt;
// Send in the clause as a string to be evaluted
var whereExample1 = From(myList).
                      Where(&amp;quot;item.FirstName == 'Chris'&amp;quot;);
 
// Send in the clause as a method to be evaluated
var whereExample2 = From(myList).
                      Where(function(item){return item.FirstName == 'Chris';});
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Using the Select operator to specify which data to return&lt;/b&gt;&lt;br /&gt;In this case, we're going to return only the FirstName property of each item in the Array.&lt;br /&gt;&lt;pre&gt;
// Send in the clause as a string to be evaluted
var selectTest1 = From(myList).
                Select(&amp;quot;item.FirstName&amp;quot;);
 
// Send in the clause as a method to be evaluted
var selectTest2 = From(myList).
                Select(function(item){return item.FirstName;});
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Using the OrderBy operator to determine how to sort the order of the items in the Array&lt;/b&gt;&lt;br /&gt;In this case, we're going to order them by the FirstName property.&lt;br /&gt;&lt;pre&gt;
// Send in the clause as a string to be evaluted
var sortTest1 = From(myList).
             OrderBy(&amp;quot;item.FirstName&amp;quot;);
 
// Send in the clause as a method to be evaluted
var sortTest1 = From(myList).
             OrderBy(function(item){return item.FirstName});
&lt;/pre&gt;
&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Sat, 02 Feb 2008 01:44:21 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080202014421A</guid></item><item><title>UPDATED RELEASE: 1.02 (Feb 01, 2008)</title><link>http://www.codeplex.com/JSLINQ/Release/ProjectReleases.aspx?ReleaseId=10401</link><description>&amp;#42; A few Bug fixes that were revealed with Unit Tests&lt;br /&gt;&amp;#42; Interactive SDK Created&lt;br /&gt;&amp;#42; Unit Test Created&lt;br /&gt;&amp;#42;&amp;#42; Intial testing of the Samples Unit Tests yielded the following speed results for all tests&amp;#58;&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42; IE7&amp;#58; &amp;#126;10 milliseconds&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42; FireFox 2&amp;#58; &amp;#126;10 milliseconds&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42; Safari 3 for Windows&amp;#58; &amp;#126;4 milliseconds</description><author></author><pubDate>Sat, 02 Feb 2008 01:35:10 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: 1.02 (Feb 01, 2008) 20080202013510A</guid></item><item><title>UPDATED RELEASE: 1.02</title><link>http://www.codeplex.com/JSLINQ/Release/ProjectReleases.aspx?ReleaseId=10401</link><description>&amp;#42; A few Bug fixes that were revealed with Unit Tests&lt;br /&gt;&amp;#42; Interactive SDK Created&lt;br /&gt;&amp;#42; Unit Test Created&lt;br /&gt;&amp;#42;&amp;#42; Intial testing of the Samples Unit Tests yielded the following speed results for all tests&amp;#58;&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42; IE7&amp;#58; &amp;#126;10 milliseconds&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42; FireFox 2&amp;#58; &amp;#126;10 milliseconds&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42; Safari 3 for Windows&amp;#58; &amp;#126;4 milliseconds</description><author></author><pubDate>Sat, 02 Feb 2008 01:34:31 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: 1.02 20080202013431A</guid></item><item><title>UPDATED RELEASE: 1.02</title><link>http://www.codeplex.com/JSLINQ/Release/ProjectReleases.aspx?ReleaseId=10401</link><description>&amp;#42; A few Bug fixes that were revealed with Unit Tests&lt;br /&gt;&amp;#42; Interactive SDK Created&lt;br /&gt;&amp;#42; Unit Test Created&lt;br /&gt;&amp;#42;&amp;#42; Intial testing of the Samples Unit Tests yielded the following speed results for all tests&amp;#58;&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42; IE7&amp;#58; &amp;#126;10 milliseconds&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42; FireFox 2&amp;#58; &amp;#126;10 milliseconds&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42; Safari 3 for Windows&amp;#58; &amp;#126;4 milliseconds</description><author></author><pubDate>Sat, 02 Feb 2008 01:31:43 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: 1.02 20080202013143A</guid></item><item><title>CREATED RELEASE: 1.02</title><link>http://www.codeplex.com/JSLINQ/Release/ProjectReleases.aspx?ReleaseId=10401</link><description>&amp;#42; A few Bug fixes that were revealed with Unit Tests&lt;br /&gt;&amp;#42; Interactive SDK Created&lt;br /&gt;&amp;#42; Unit Test Created&lt;br /&gt;&amp;#42;&amp;#42; Intial testing of the Samples Unit Tests yielded the following speed results&amp;#58;&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42; IE7&amp;#58; &amp;#126;10 milliseconds&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42; FireFox 2&amp;#58; &amp;#126;10 milliseconds&lt;br /&gt;&amp;#42;&amp;#42;&amp;#42; Safari 3 for Windows&amp;#58; &amp;#126;4 milliseconds</description><author></author><pubDate>Sat, 02 Feb 2008 01:31:12 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: 1.02 20080202013112A</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/JSLINQ/Wiki/View.aspx?title=Home&amp;version=13</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;LINQ to JavaScript &amp;#40;JSLINQ&amp;#41; is an implementation of LINQ to Objects implemented in JavaScript. It is built using a set of extension methods built on top of the JavaScript Array object. If you are using an Array, you can use LINQ to JavaScript.
&lt;br /&gt; &lt;br /&gt;This is created and maintained by Chris Pietschmann (&lt;a href="http://pietschsoft.com" class="externalLink"&gt;http://pietschsoft.com&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;).&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
What is LINQ to JavaScript?
&lt;/h2&gt; &lt;br /&gt;LINQ to JavaScript (JSLINQ for short) is an implementation of LINQ to Objects implemented in JavaScript. It is built using a set of extension methods built on top of the JavaScript Array object. If you are using an Array, you can use JSLINQ.&lt;br /&gt; &lt;br /&gt;If you don't know what LINQ is; it's a new featureset in the .NET Framework 3.5 that allows more SQL-like querying of any kind of data. In the case of LINQ to JavaScript, it provides the ability to query against Arrays.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Example Usage&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
var myList = [
            {FirstName:&amp;quot;Chris&amp;quot;,LastName:&amp;quot;Pearson&amp;quot;},
            {FirstName:&amp;quot;Kate&amp;quot;,LastName:&amp;quot;Johnson&amp;quot;},
            {FirstName:&amp;quot;Josh&amp;quot;,LastName:&amp;quot;Sutherland&amp;quot;},
            {FirstName:&amp;quot;John&amp;quot;,LastName:&amp;quot;Ronald&amp;quot;},
            {FirstName:&amp;quot;Steve&amp;quot;,LastName:&amp;quot;Pinkerton&amp;quot;}
            ];
            
var exampleArray = From(myList).
                   Where(&amp;quot;item.FirstName == 'Chris'&amp;quot;).
                   OrderBy(&amp;quot;item.FirstName&amp;quot;).
                   Select(&amp;quot;item.FirstName&amp;quot;);
&lt;/pre&gt; &lt;br /&gt;&lt;h2&gt;
Using LINQ to JavaScript
&lt;/h2&gt;We will use this Array for the following examples:&lt;br /&gt;&lt;pre&gt;
var myList = [
            {FirstName:&amp;quot;Chris&amp;quot;,LastName:&amp;quot;Pearson&amp;quot;},
            {FirstName:&amp;quot;Kate&amp;quot;,LastName:&amp;quot;Johnson&amp;quot;},
            {FirstName:&amp;quot;Josh&amp;quot;,LastName:&amp;quot;Sutherland&amp;quot;},
            {FirstName:&amp;quot;John&amp;quot;,LastName:&amp;quot;Ronald&amp;quot;},
            {FirstName:&amp;quot;Steve&amp;quot;,LastName:&amp;quot;Pinkerton&amp;quot;}
            ];
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Use the From operator just as you would in LINQ in .NET&lt;/b&gt;&lt;br /&gt;The From operator is optional, and only included in LINQ to JavaScript to be able to support the same syntax as LINQ.&lt;br /&gt;&lt;pre&gt;
var example = From(myList);
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Using the Where operator to specify query criteria&lt;/b&gt;&lt;br /&gt;In this case, we're getting all items in the Array that have FirstName property set to Chris.&lt;br /&gt;&lt;pre&gt;
// Send in the clause as a string to be evaluted
var whereExample1 = From(myList).
                      Where(&amp;quot;item.FirstName == 'Chris'&amp;quot;);
 
// Send in the clause as a method to be evaluated
var whereExample2 = From(myList).
                      Where(function(item){return item.FirstName == 'Chris';});
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Using the Select operator to specify which data to return&lt;/b&gt;&lt;br /&gt;In this case, we're going to return only the FirstName property of each item in the Array.&lt;br /&gt;&lt;pre&gt;
// Send in the clause as a string to be evaluted
var selectTest1 = From(myList).
                Select(&amp;quot;item.FirstName&amp;quot;);
 
// Send in the clause as a method to be evaluted
var selectTest2 = From(myList).
                Select(function(item){return item.FirstName;});
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Using the OrderBy operator to determine how to sort the order of the items in the Array&lt;/b&gt;&lt;br /&gt;In this case, we're going to order them by the FirstName property.&lt;br /&gt;&lt;pre&gt;
// Send in the clause as a string to be evaluted
var sortTest1 = From(myList).
             OrderBy(&amp;quot;item.FirstName&amp;quot;);
 
// Send in the clause as a method to be evaluted
var sortTest1 = From(myList).
             OrderBy(function(item){return item.FirstName});
&lt;/pre&gt;
&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Wed, 30 Jan 2008 18:53:03 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080130065303P</guid></item><item><title>UPDATED RELEASE: 1.01 (Jan 30, 2008)</title><link>http://www.codeplex.com/JSLINQ/Release/ProjectReleases.aspx?ReleaseId=10315</link><description>This release adds the following functionality&amp;#58;&lt;br /&gt;- Added the OrderByDescending Operator&lt;br /&gt;- Added the SelectMany Operator&lt;br /&gt;- Added the Count Operator&lt;br /&gt;- Added the Distinct Operator&lt;br /&gt;- Added the Any Operator&lt;br /&gt;- Added the All Operator&lt;br /&gt;- Made it so you can access the elements &amp;#34;index&amp;#34; within the clause&amp;#47;predicate of each of the following Operators&amp;#58; Where, Count, Any, All&lt;br /&gt;- Added the Reverse Operator, this also allows access to the elements &amp;#34;index&amp;#34; within the clause&amp;#47;predicate&lt;br /&gt;- Added First Operator, this also allows access to the elements &amp;#34;index&amp;#34; within the clause&amp;#47;predicate&lt;br /&gt;- Added Last Operator, this also allows access to the elements &amp;#34;index&amp;#34; within the clause&amp;#47;predicate&lt;br /&gt;- Added ElementAt Operator&lt;br /&gt;- Added Concat Operator - this is identical to JavaScripts Array.concat method</description><author></author><pubDate>Wed, 30 Jan 2008 18:51:50 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: 1.01 (Jan 30, 2008) 20080130065150P</guid></item><item><title>CREATED RELEASE: 1.01</title><link>http://www.codeplex.com/JSLINQ/Release/ProjectReleases.aspx?ReleaseId=10315</link><description>This release adds the following functionality&amp;#58;&lt;br /&gt;- Added the OrderByDescending Operator&lt;br /&gt;- Added the SelectMany Operator&lt;br /&gt;- Added the Count Operator&lt;br /&gt;- Added the Distinct Operator&lt;br /&gt;- Added the Any Operator&lt;br /&gt;- Added the All Operator&lt;br /&gt;- Made it so you can access the elements &amp;#34;index&amp;#34; within the clause&amp;#47;predicate of each of the following Operators&amp;#58; Where, Count, Any, All&lt;br /&gt;- Added the Reverse Operator, this also allows access to the elements &amp;#34;index&amp;#34; within the clause&amp;#47;predicate&lt;br /&gt;- Added First Operator, this also allows access to the elements &amp;#34;index&amp;#34; within the clause&amp;#47;predicate&lt;br /&gt;- Added Last Operator, this also allows access to the elements &amp;#34;index&amp;#34; within the clause&amp;#47;predicate&lt;br /&gt;- Added ElementAt Operator&lt;br /&gt;- Added Concat Operator - this is identical to JavaScripts Array.concat method</description><author></author><pubDate>Wed, 30 Jan 2008 18:48:42 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: 1.01 20080130064842P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/JSLINQ/Wiki/View.aspx?title=Home&amp;version=12</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;LINQ to JavaScript &amp;#40;JSLINQ&amp;#41; is an implementation of LINQ to Objects implemented in JavaScript. It is built using a set of extension methods built on top of the JavaScript Array object. If you are using an Array, you can use LINQ to JavaScript.
&lt;br /&gt; &lt;br /&gt;This is created and maintained by Chris Pietschmann (&lt;a href="http://pietschsoft.com" class="externalLink"&gt;http://pietschsoft.com&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;).&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
What is LINQ to JavaScript?
&lt;/h2&gt; &lt;br /&gt;LINQ to JavaScript (JSLINQ for short) is an implementation of LINQ to Objects implemented in JavaScript. It is built using a set of extension methods built on top of the JavaScript Array object. If you are using an Array, you can use JSLINQ.&lt;br /&gt; &lt;br /&gt;If you don't know what LINQ is; it's a new featureset in the .NET Framework 3.5 that allows more SQL-like querying of any kind of data. In the case of LINQ to JavaScript, it provides the ability to query against Arrays.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Example Usage&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
var myList = [
            {FirstName:&amp;quot;Chris&amp;quot;,LastName:&amp;quot;Pearson&amp;quot;},
            {FirstName:&amp;quot;Kate&amp;quot;,LastName:&amp;quot;Johnson&amp;quot;},
            {FirstName:&amp;quot;Josh&amp;quot;,LastName:&amp;quot;Sutherland&amp;quot;},
            {FirstName:&amp;quot;John&amp;quot;,LastName:&amp;quot;Ronald&amp;quot;},
            {FirstName:&amp;quot;Steve&amp;quot;,LastName:&amp;quot;Pinkerton&amp;quot;}
            ];
            
var exampeArray = From(myList).
                   Where(&amp;quot;item.FirstName == 'Chris'&amp;quot;).
                   OrderBy(&amp;quot;item.FirstName&amp;quot;).
                   Select(&amp;quot;item.FirstName&amp;quot;);
&lt;/pre&gt; &lt;br /&gt;&lt;h2&gt;
Using LINQ to JavaScript
&lt;/h2&gt;We will use this Array for the following examples:&lt;br /&gt;&lt;pre&gt;
var myList = [
            {FirstName:&amp;quot;Chris&amp;quot;,LastName:&amp;quot;Pearson&amp;quot;},
            {FirstName:&amp;quot;Kate&amp;quot;,LastName:&amp;quot;Johnson&amp;quot;},
            {FirstName:&amp;quot;Josh&amp;quot;,LastName:&amp;quot;Sutherland&amp;quot;},
            {FirstName:&amp;quot;John&amp;quot;,LastName:&amp;quot;Ronald&amp;quot;},
            {FirstName:&amp;quot;Steve&amp;quot;,LastName:&amp;quot;Pinkerton&amp;quot;}
            ];
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Use the From operator just as you would in LINQ in .NET&lt;/b&gt;&lt;br /&gt;The From operator is optional, and only included in LINQ to JavaScript to be able to support the same syntax as LINQ.&lt;br /&gt;&lt;pre&gt;
var example = From(myList);
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Using the Where operator to specify query criteria&lt;/b&gt;&lt;br /&gt;In this case, we're getting all items in the Array that have FirstName property set to Chris.&lt;br /&gt;&lt;pre&gt;
// Send in the clause as a string to be evaluted
var whereExample1 = From(myList).
                      Where(&amp;quot;item.FirstName == 'Chris'&amp;quot;);
 
// Send in the clause as a method to be evaluated
var whereExample2 = From(myList).
                      Where(function(item){return item.FirstName == 'Chris';});
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Using the Select operator to specify which data to return&lt;/b&gt;&lt;br /&gt;In this case, we're going to return only the FirstName property of each item in the Array.&lt;br /&gt;&lt;pre&gt;
// Send in the clause as a string to be evaluted
var selectTest1 = From(myList).
                Select(&amp;quot;item.FirstName&amp;quot;);
 
// Send in the clause as a method to be evaluted
var selectTest2 = From(myList).
                Select(function(item){return item.FirstName;});
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Using the OrderBy operator to determine how to sort the order of the items in the Array&lt;/b&gt;&lt;br /&gt;In this case, we're going to order them by the FirstName property.&lt;br /&gt;&lt;pre&gt;
// Send in the clause as a string to be evaluted
var sortTest1 = From(myList).
             OrderBy(&amp;quot;item.FirstName&amp;quot;);
 
// Send in the clause as a method to be evaluted
var sortTest1 = From(myList).
             OrderBy(function(item){return item.FirstName});
&lt;/pre&gt;
&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Wed, 30 Jan 2008 18:46:39 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080130064639P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://www.codeplex.com/JSLINQ/Wiki/View.aspx?title=Home&amp;version=11</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;LINQ to JavaScript &amp;#40;JSLINQ&amp;#41; is an implementation of LINQ to Objects implemented in JavaScript. It is built using a set of extension methods built on top of the JavaScript Array object. If you are using an Array, you can use LINQ to JavaScript.
&lt;br /&gt; &lt;br /&gt;This is created and maintained by Chris Pietschmann (&lt;a href="http://pietschsoft.com%20Chris%20Pietschmann" class="externalLink"&gt;http://pietschsoft.com Chris Pietschmann&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;).&lt;br /&gt; &lt;br /&gt;&lt;h2&gt;
What is LINQ to JavaScript?
&lt;/h2&gt; &lt;br /&gt;LINQ to JavaScript (JSLINQ for short) is an implementation of LINQ to Objects implemented in JavaScript. It is built using a set of extension methods built on top of the JavaScript Array object. If you are using an Array, you can use JSLINQ.&lt;br /&gt; &lt;br /&gt;If you don't know what LINQ is; it's a new featureset in the .NET Framework 3.5 that allows more SQL-like querying of any kind of data. In the case of LINQ to JavaScript, it provides the ability to query against Arrays.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Example Usage&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;
var myList = [
            {FirstName:&amp;quot;Chris&amp;quot;,LastName:&amp;quot;Pearson&amp;quot;},
            {FirstName:&amp;quot;Kate&amp;quot;,LastName:&amp;quot;Johnson&amp;quot;},
            {FirstName:&amp;quot;Josh&amp;quot;,LastName:&amp;quot;Sutherland&amp;quot;},
            {FirstName:&amp;quot;John&amp;quot;,LastName:&amp;quot;Ronald&amp;quot;},
            {FirstName:&amp;quot;Steve&amp;quot;,LastName:&amp;quot;Pinkerton&amp;quot;}
            ];
            
var exampeArray = From(myList).
                   Where(&amp;quot;item.FirstName == 'Chris'&amp;quot;).
                   OrderBy(&amp;quot;item.FirstName&amp;quot;).
                   Select(&amp;quot;item.FirstName&amp;quot;);
&lt;/pre&gt; &lt;br /&gt;&lt;h2&gt;
Using LINQ to JavaScript
&lt;/h2&gt;We will use this Array for the following examples:&lt;br /&gt;&lt;pre&gt;
var myList = [
            {FirstName:&amp;quot;Chris&amp;quot;,LastName:&amp;quot;Pearson&amp;quot;},
            {FirstName:&amp;quot;Kate&amp;quot;,LastName:&amp;quot;Johnson&amp;quot;},
            {FirstName:&amp;quot;Josh&amp;quot;,LastName:&amp;quot;Sutherland&amp;quot;},
            {FirstName:&amp;quot;John&amp;quot;,LastName:&amp;quot;Ronald&amp;quot;},
            {FirstName:&amp;quot;Steve&amp;quot;,LastName:&amp;quot;Pinkerton&amp;quot;}
            ];
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Use the From operator just as you would in LINQ in .NET&lt;/b&gt;&lt;br /&gt;The From operator is optional, and only included in LINQ to JavaScript to be able to support the same syntax as LINQ.&lt;br /&gt;&lt;pre&gt;
var example = From(myList);
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Using the Where operator to specify query criteria&lt;/b&gt;&lt;br /&gt;In this case, we're getting all items in the Array that have FirstName property set to Chris.&lt;br /&gt;&lt;pre&gt;
// Send in the clause as a string to be evaluted
var whereExample1 = From(myList).
                      Where(&amp;quot;item.FirstName == 'Chris'&amp;quot;);
 
// Send in the clause as a method to be evaluated
var whereExample2 = From(myList).
                      Where(function(item){return item.FirstName == 'Chris';});
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Using the Select operator to specify which data to return&lt;/b&gt;&lt;br /&gt;In this case, we're going to return only the FirstName property of each item in the Array.&lt;br /&gt;&lt;pre&gt;
// Send in the clause as a string to be evaluted
var selectTest1 = From(myList).
                Select(&amp;quot;item.FirstName&amp;quot;);
 
// Send in the clause as a method to be evaluted
var selectTest2 = From(myList).
                Select(function(item){return item.FirstName;});
&lt;/pre&gt; &lt;br /&gt;&lt;b&gt;Using the OrderBy operator to determine how to sort the order of the items in the Array&lt;/b&gt;&lt;br /&gt;In this case, we're going to order them by the FirstName property.&lt;br /&gt;&lt;pre&gt;
// Send in the clause as a string to be evaluted
var sortTest1 = From(myList).
             OrderBy(&amp;quot;item.FirstName&amp;quot;);
 
// Send in the clause as a method to be evaluted
var sortTest1 = From(myList).
             OrderBy(function(item){return item.FirstName});
&lt;/pre&gt;
&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Wed, 30 Jan 2008 18:46:25 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080130064625P</guid></item><item><title>NEW POST: A Better Query Tool Than jQuery?</title><link>http://www.codeplex.com/JSLINQ/Thread/View.aspx?ThreadId=20980</link><description>&lt;div class="wikidoc"&gt;
If you have any ideas for functionality for JSLINQ, feel free to submit them to the Issue Tracker; along with any code demonstrating them. And, if they make sense for the scope of this project, I'll incorporate them into the project.&lt;br /&gt; &lt;br /&gt;Currently, CodePlex is the only home page for this project, I'm thinking about creating a site dedicated to it. It is a great idea to create a section where others can post JSLINQ Extensions. I just created an Extensions tag in the Discussion forums, so just post any code for Extensions there for the time being. If it becomes popular enough with people posting their own JSLINQ extensions I'll create an Extensions section on the projects website, once I create it.&lt;br /&gt; &lt;br /&gt;Thanks for the suggestions!&lt;br /&gt;
&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Sat, 26 Jan 2008 04:24:04 GMT</pubDate><guid isPermaLink="false">NEW POST: A Better Query Tool Than jQuery? 20080126042404A</guid></item><item><title>NEW POST: Script and LINQ</title><link>http://www.codeplex.com/JSLINQ/Thread/View.aspx?ThreadId=21008</link><description>&lt;div class="wikidoc"&gt;
Nice - Just thought I'd post a link to a post I did a while back demonstrating LINQ concepts in script - http://www.nikhilk.net/ScriptAndLINQ.aspx.&lt;br /&gt;Also, script# supports these APIs as well, as mentioned in the post.&lt;br /&gt;
&lt;/div&gt;</description><author>NikhilK</author><pubDate>Fri, 25 Jan 2008 08:14:48 GMT</pubDate><guid isPermaLink="false">NEW POST: Script and LINQ 20080125081448A</guid></item><item><title>NEW POST: A Better Query Tool Than jQuery?</title><link>http://www.codeplex.com/JSLINQ/Thread/View.aspx?ThreadId=20980</link><description>&lt;div class="wikidoc"&gt;
JSLINQ is a really interesting idea, by the way.&lt;br /&gt;
&lt;/div&gt;</description><author>stimpy77</author><pubDate>Thu, 24 Jan 2008 22:27:04 GMT</pubDate><guid isPermaLink="false">NEW POST: A Better Query Tool Than jQuery? 20080124102704P</guid></item><item><title>NEW POST: A Better Query Tool Than jQuery?</title><link>http://www.codeplex.com/JSLINQ/Thread/View.aspx?ThreadId=20980</link><description>&lt;div class="wikidoc"&gt;
I take it this can run in the browser (Firefox, Opera, etc).&lt;br /&gt; &lt;br /&gt;Is it inherently extensible like jQuery is? jQuery's extensibility seems to be more of a service than a feature since Javascript objects are all extensible; is there a home page for JSLINQ where jQuery-like extensions can be featured?&lt;br /&gt; &lt;br /&gt;For that matter, what about appending jQuery object with JSLINQ's object definition so that jQuery extensions &amp;quot;just work&amp;quot; with JSLINQ? :D&lt;br /&gt;
&lt;/div&gt;</description><author>stimpy77</author><pubDate>Thu, 24 Jan 2008 22:23:17 GMT</pubDate><guid isPermaLink="false">NEW POST: A Better Query Tool Than jQuery? 20080124102317P</guid></item><item><title>UPDATED RELEASE: 1.00 (Jan 24, 2008)</title><link>http://www.codeplex.com/JSLINQ/Release/ProjectReleases.aspx?ReleaseId=10162</link><description>This is the first release of LINQ to JavaScript &amp;#40;JSLINQ&amp;#41; and includes the following operators&amp;#58;&lt;br /&gt;&amp;#42; From&lt;br /&gt;&amp;#42; Where&lt;br /&gt;&amp;#42; OrderBy&lt;br /&gt;&amp;#42; Select</description><author></author><pubDate>Thu, 24 Jan 2008 18:44:03 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: 1.00 (Jan 24, 2008) 20080124064403P</guid></item><item><title>UPDATED RELEASE: 1.00 (Jan 24, 2008)</title><link>http://www.codeplex.com/JSLINQ/Release/ProjectReleases.aspx?ReleaseId=10162</link><description>This is the first release of LINQ to JavaScript &amp;#40;JSLINQ&amp;#41; and includes the following operators&amp;#58;&lt;br /&gt;&amp;#42; From&lt;br /&gt;&amp;#42; Where&lt;br /&gt;&amp;#42; OrderBy&lt;br /&gt;&amp;#42; Select</description><author></author><pubDate>Thu, 24 Jan 2008 18:43:00 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: 1.00 (Jan 24, 2008) 20080124064300P</guid></item></channel></rss>