<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>LINQ to JavaScript</title><link>http://jslinq.codeplex.com/project/feeds/rss</link><description>LINQ to JavaScript &amp;#40;JSLINQ&amp;#41; is LINQ to Objects for JavaScript arrays, and adds power and flexibility of LINQ style queries to traditional JavaScript code.</description><item><title>New Post: WildCards</title><link>http://jslinq.codeplex.com/discussions/397670</link><description>&lt;div style="line-height: normal;"&gt;This is out of the scope of jslinq. What you are looking for is a &amp;quot;startsWith&amp;quot; method for JavaScript strings. A simple Google search will yield many results.&lt;br /&gt;
&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Fri, 22 Mar 2013 22:16:50 GMT</pubDate><guid isPermaLink="false">New Post: WildCards 20130322101650P</guid></item><item><title>New Post: WildCards</title><link>http://jslinq.codeplex.com/discussions/397670</link><description>&lt;div style="line-height: normal;"&gt;This is out of the scope of jslinq. What you are looking for is a &amp;quot;startsWith&amp;quot; method for JavaScript strings. A simple Google search will yield many results.&lt;br /&gt;
&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Fri, 22 Mar 2013 22:16:50 GMT</pubDate><guid isPermaLink="false">New Post: WildCards 20130322101650P</guid></item><item><title>Updated Wiki: Home</title><link>http://jslinq.codeplex.com/wikipage?version=43</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 LINQ to Objects for JavaScript arrays, and adds power and flexibility of LINQ style queries to traditional JavaScript code.&lt;br /&gt;
&lt;h2&gt;What is LINQ to JavaScript?&lt;/h2&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 Arrays then you can use JSLINQ; it&amp;#39;s that simple!&lt;br /&gt;
&lt;h2&gt;Nuget Package&lt;/h2&gt;&lt;a href="http://nuget.org/packages/jslinq"&gt;http://nuget.org/packages/jslinq&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://nuget.org/packages/jslinq"&gt;&lt;img style="border:none;" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=jslinq&amp;amp;DownloadId=639406" alt="Install SQLinq via Nuget" title="Install SQLinq via Nuget" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you don&amp;#39;t know what LINQ is; it&amp;#39;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;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; myList = [
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Chris&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Pearson&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Kate&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Johnson&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Josh&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Sutherland&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;John&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Ronald&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Steve&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Pinkerton&amp;quot;&lt;/span&gt;}
            ];
            
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; exampleArray = JSLINQ(myList)
                   .Where(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName == &lt;span style="color:#A31515;"&gt;&amp;quot;Chris&amp;quot;&lt;/span&gt;; })
                   .OrderBy(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item) { &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName; })
                   .Select(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName; });
&lt;/pre&gt;&lt;/div&gt;&lt;h2&gt;Using LINQ to JavaScript&lt;/h2&gt;We will use this Array for the following examples:&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; myList = [
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Chris&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Pearson&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Kate&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Johnson&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Josh&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Sutherland&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;John&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Ronald&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Steve&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Pinkerton&amp;quot;&lt;/span&gt;}
            ];
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Create an Instance of the JSLINQ object with your data&lt;/h3&gt;You need to create a new JSLINQ object and pass it the javascript array of data that you will be querying.&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; example = JSLINQ(myList);
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Using the Where operator to specify query criteria&lt;/h3&gt;In this case, we&amp;#39;re getting all items in the Array that have FirstName property set to Chris.&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; whereExample1 = JSLINQ(myList).
                      Where(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName == &lt;span style="color:#A31515;"&gt;&amp;quot;Chris&amp;quot;&lt;/span&gt;; });
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Using the Select operator to specify which data to return&lt;/h3&gt;In this case, we&amp;#39;re going to return only the FirstName property of each item in the Array.&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; selectTest2 = JSLINQ(myList).
                Select(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName; });
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Using the OrderBy operator to determine how to sort the order of the items in the Array&lt;/h3&gt;In this case, we&amp;#39;re going to order them by the FirstName property.&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; sortTest1 = JSLINQ(myList)
             .OrderBy(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName; });
&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;Acticles / News&lt;/h2&gt;&lt;a href="http://secretgeek.net/JsLinq/"&gt;JSLinq Editor&lt;/a&gt;&lt;br /&gt;2010/03/16: &lt;a href="http://www.gregshackles.com/2010/03/linq-for-javascript-using-and-extending-jslinq/"&gt;LINQ for JavaScript: Using and Extending JSLINQ&lt;/a&gt;&lt;br /&gt;2008/01/24: &lt;a href="http://pietschsoft.com/post/2008/01/24/LINQ-to-JavaScript-%28JSLINQ%29-Open-Source-Project-Launched!.aspx"&gt;LINQ to JavaScript (JSLINQ) Open Source Project Launched!&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;Contributors&lt;/h2&gt;This project is maintained by &lt;a href="http://pietschsoft.com"&gt;Chris Pietschmann&lt;/a&gt;. He is a Microsoft MVP for Bing Maps, a Co-Founder of &lt;a href="http://carto.com"&gt;Carto LLC&lt;/a&gt;, and the Owner of &lt;a href="http://simplovation.com"&gt;Simplovation LLC&lt;/a&gt; a software development consulting company that specializes in Mapping/GIS related application development.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Sat, 16 Mar 2013 15:30:46 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20130316033046P</guid></item><item><title>Updated Release: v2.00 (Mar 30, 2009)</title><link>http://jslinq.codeplex.com/releases/view/18355</link><description>&lt;div class="wikidoc"&gt;This release will include at minimum all the functionality v1.03 has except for the following changes:
&lt;ul&gt;&lt;li&gt;Removed use of &amp;quot;eval&amp;quot; method for improved security&lt;/li&gt;
&lt;li&gt;Added an example of search an HTML DOM Table using JSLINQ&lt;/li&gt;
&lt;li&gt;Placed all functionality within the global JSLINQ object. This is to improve possible compatibility with other javascript frameworks (like jQuery and ASP.NET AJAX).&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Sat, 16 Mar 2013 15:15:53 GMT</pubDate><guid isPermaLink="false">Updated Release: v2.00 (Mar 30, 2009) 20130316031553P</guid></item><item><title>Released: v2.00 (Mar 30, 2009)</title><link>http://jslinq.codeplex.com/releases/view/18355</link><description>
&lt;div class="wikidoc"&gt;This release will include at minimum all the functionality v1.03 has except for the following changes:
&lt;ul&gt;
&lt;li&gt;Removed use of &amp;quot;eval&amp;quot; method for improved security &lt;/li&gt;&lt;li&gt;Added an example of search an HTML DOM Table using JSLINQ &lt;/li&gt;&lt;li&gt;Placed all functionality within the global JSLINQ object. This is to improve possible compatibility with other javascript frameworks (like jQuery and ASP.NET AJAX).&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
</description><author></author><pubDate>Sat, 16 Mar 2013 15:15:53 GMT</pubDate><guid isPermaLink="false">Released: v2.00 (Mar 30, 2009) 20130316031553P</guid></item><item><title>Updated Release: v2.10 (Jun 16, 2009)</title><link>http://jslinq.codeplex.com/releases/view/28886</link><description>&lt;div class="wikidoc"&gt;&lt;h2&gt;Nuget Package&lt;/h2&gt;&lt;a href="http://nuget.org/packages/jslinq"&gt;http://nuget.org/packages/jslinq&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://nuget.org/packages/jslinq"&gt;&lt;img style="border:none;" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=jslinq&amp;amp;DownloadId=639406" alt="Install SQLinq via Nuget" title="Install SQLinq via Nuget" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;Release Notes&lt;/h2&gt;This release includes the below changes, one of which is the most notable is it now includes a &amp;quot;plugin&amp;quot; model similar to that of jQuery. An Extensibility example is included in the download.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Version 2.10 Change Log&lt;/u&gt;&lt;br /&gt;- Modified the JSLINQ object to allow you to create an instance of JSLINQ containing an Array of elements&lt;br /&gt;using either of the following methods:&lt;br /&gt;	var option1 = JSLINQ(myArray);&lt;br /&gt;	var option2 = new JSLINQ(myArray);&lt;br /&gt;&lt;br /&gt;- Added an extensibility example; located at &amp;quot;/Examples/Extensions/get.htm&amp;quot;&lt;br /&gt;- Added Improved Intellisense Support and moved it to the &amp;quot;JSLINQ-vsdoc.js&amp;quot; file.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Sat, 16 Mar 2013 15:15:36 GMT</pubDate><guid isPermaLink="false">Updated Release: v2.10 (Jun 16, 2009) 20130316031536P</guid></item><item><title>Released: v2.10 (Jun 16, 2009)</title><link>http://jslinq.codeplex.com/releases/view/28886</link><description>
&lt;div class="wikidoc"&gt;
&lt;h2&gt;Nuget Package&lt;/h2&gt;
&lt;a href="http://nuget.org/packages/jslinq"&gt;http://nuget.org/packages/jslinq&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;a href="http://nuget.org/packages/jslinq"&gt;&lt;img src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=jslinq&amp;DownloadId=639406" alt="Install SQLinq via Nuget" title="Install SQLinq via Nuget" style="border:none"&gt;&lt;/a&gt;&lt;br&gt;
&lt;h2&gt;Release Notes&lt;/h2&gt;
This release includes the below changes, one of which is the most notable is it now includes a &amp;quot;plugin&amp;quot; model similar to that of jQuery. An Extensibility example is included in the download.&lt;br&gt;
&lt;br&gt;
&lt;u&gt;Version 2.10 Change Log&lt;/u&gt;&lt;br&gt;
- Modified the JSLINQ object to allow you to create an instance of JSLINQ containing an Array of elements&lt;br&gt;
using either of the following methods:&lt;br&gt;
var option1 = JSLINQ(myArray);&lt;br&gt;
var option2 = new JSLINQ(myArray);&lt;br&gt;
&lt;br&gt;
- Added an extensibility example; located at &amp;quot;/Examples/Extensions/get.htm&amp;quot;&lt;br&gt;
- Added Improved Intellisense Support and moved it to the &amp;quot;JSLINQ-vsdoc.js&amp;quot; file.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
</description><author></author><pubDate>Sat, 16 Mar 2013 15:15:36 GMT</pubDate><guid isPermaLink="false">Released: v2.10 (Jun 16, 2009) 20130316031536P</guid></item><item><title>Updated Release: v2.10 (Jun 16, 2009)</title><link>http://jslinq.codeplex.com/releases/view/28886</link><description>&lt;div class="wikidoc"&gt;&lt;h2&gt;Nuget Package&lt;/h2&gt;&lt;a href="http://nuget.org/packages/jslinq"&gt;http://nuget.org/packages/jslinq&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://nuget.org/packages/jslinq"&gt;&lt;img style="border:none;" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=jslinq&amp;amp;DownloadId=639406" alt="Install SQLinq via Nuget" title="Install SQLinq via Nuget" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;Release Notes&lt;/h2&gt;This release includes the below changes, one of which is the most notable is it now includes a &amp;quot;plugin&amp;quot; model similar to that of jQuery. An Extensibility example is included in the download.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Version 2.10 Change Log&lt;/u&gt;&lt;br /&gt;- Modified the JSLINQ object to allow you to create an instance of JSLINQ containing an Array of elements&lt;br /&gt;using either of the following methods:&lt;br /&gt;	var option1 = JSLINQ(myArray);&lt;br /&gt;	var option2 = new JSLINQ(myArray);&lt;br /&gt;&lt;br /&gt;- Added an extensibility example; located at &amp;quot;/Examples/Extensions/get.htm&amp;quot;&lt;br /&gt;- Added Improved Intellisense Support and moved it to the &amp;quot;JSLINQ-vsdoc.js&amp;quot; file.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Sat, 16 Mar 2013 15:14:06 GMT</pubDate><guid isPermaLink="false">Updated Release: v2.10 (Jun 16, 2009) 20130316031406P</guid></item><item><title>Updated Wiki: Home</title><link>http://jslinq.codeplex.com/wikipage?version=42</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 for JavaScript. It is simple to use and gives much needed power and flexibility to performing LINQ style queries agains traditional JavaScript Arrays. If you are using an Array, you can use LINQ to JavaScript to step up your game.&lt;br /&gt;
&lt;h2&gt;What is LINQ to JavaScript?&lt;/h2&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;h2&gt;Nuget Package&lt;/h2&gt;&lt;a href="http://nuget.org/packages/jslinq"&gt;http://nuget.org/packages/jslinq&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://nuget.org/packages/jslinq"&gt;&lt;img style="border:none;" src="http://download-codeplex.sec.s-msft.com/Download?ProjectName=jslinq&amp;amp;DownloadId=639406" alt="Install SQLinq via Nuget" title="Install SQLinq via Nuget" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you don&amp;#39;t know what LINQ is; it&amp;#39;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;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; myList = [
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Chris&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Pearson&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Kate&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Johnson&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Josh&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Sutherland&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;John&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Ronald&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Steve&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Pinkerton&amp;quot;&lt;/span&gt;}
            ];
            
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; exampleArray = JSLINQ(myList)
                   .Where(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName == &lt;span style="color:#A31515;"&gt;&amp;quot;Chris&amp;quot;&lt;/span&gt;; })
                   .OrderBy(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item) { &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName; })
                   .Select(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName; });
&lt;/pre&gt;&lt;/div&gt;&lt;h2&gt;Using LINQ to JavaScript&lt;/h2&gt;We will use this Array for the following examples:&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; myList = [
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Chris&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Pearson&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Kate&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Johnson&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Josh&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Sutherland&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;John&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Ronald&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Steve&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Pinkerton&amp;quot;&lt;/span&gt;}
            ];
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Create an Instance of the JSLINQ object with your data&lt;/h3&gt;You need to create a new JSLINQ object and pass it the javascript array of data that you will be querying.&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; example = JSLINQ(myList);
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Using the Where operator to specify query criteria&lt;/h3&gt;In this case, we&amp;#39;re getting all items in the Array that have FirstName property set to Chris.&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; whereExample1 = JSLINQ(myList).
                      Where(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName == &lt;span style="color:#A31515;"&gt;&amp;quot;Chris&amp;quot;&lt;/span&gt;; });
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Using the Select operator to specify which data to return&lt;/h3&gt;In this case, we&amp;#39;re going to return only the FirstName property of each item in the Array.&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; selectTest2 = JSLINQ(myList).
                Select(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName; });
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Using the OrderBy operator to determine how to sort the order of the items in the Array&lt;/h3&gt;In this case, we&amp;#39;re going to order them by the FirstName property.&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; sortTest1 = JSLINQ(myList)
             .OrderBy(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName; });
&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;Acticles / News&lt;/h2&gt;&lt;a href="http://secretgeek.net/JsLinq/"&gt;JSLinq Editor&lt;/a&gt;&lt;br /&gt;2010/03/16: &lt;a href="http://www.gregshackles.com/2010/03/linq-for-javascript-using-and-extending-jslinq/"&gt;LINQ for JavaScript: Using and Extending JSLINQ&lt;/a&gt;&lt;br /&gt;2008/01/24: &lt;a href="http://pietschsoft.com/post/2008/01/24/LINQ-to-JavaScript-%28JSLINQ%29-Open-Source-Project-Launched!.aspx"&gt;LINQ to JavaScript (JSLINQ) Open Source Project Launched!&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;Contributors&lt;/h2&gt;This project is maintained by &lt;a href="http://pietschsoft.com"&gt;Chris Pietschmann&lt;/a&gt;. He is a Microsoft MVP for Bing Maps, a Co-Founder of &lt;a href="http://carto.com"&gt;Carto LLC&lt;/a&gt;, and the Owner of &lt;a href="http://simplovation.com"&gt;Simplovation LLC&lt;/a&gt; a software development consulting company that specializes in Mapping/GIS related application development.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Sat, 16 Mar 2013 15:10:51 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20130316031051P</guid></item><item><title>Source code checked in, #72205</title><link>http://jslinq.codeplex.com/SourceControl/changeset/changes/72205</link><description>Created Nuget package for v2.10</description><author>crpietschmann</author><pubDate>Sat, 16 Mar 2013 15:08:29 GMT</pubDate><guid isPermaLink="false">Source code checked in, #72205 20130316030829P</guid></item><item><title>Reviewed: v2.10 (二月 28, 2013)</title><link>http://jslinq.codeplex.com/releases/view/28886#ReviewBy-h63542</link><description>Rated 5 Stars &amp;#40;out of 5&amp;#41; - very like it&amp;#39;s a good job</description><author>h63542</author><pubDate>Thu, 28 Feb 2013 12:33:40 GMT</pubDate><guid isPermaLink="false">Reviewed: v2.10 (二月 28, 2013) 20130228123340P</guid></item><item><title>Created Issue: Distinct function not working properly with an object [9775]</title><link>http://jslinq.codeplex.com/workitem/9775</link><description>I made a fix&amp;#33;&lt;br /&gt;We assume that if the programmer doesn&amp;#39;t want a distinct on a base type collection he just uses a clause to help knowing how to compare them.&lt;br /&gt;Enjoy&lt;br /&gt;&lt;br /&gt;Distinct&amp;#58; function &amp;#40;clause&amp;#41; &amp;#123;&lt;br /&gt;            var item&amp;#59;&lt;br /&gt;            var dict &amp;#61; new Object&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            var retVal &amp;#61; new Array&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            for &amp;#40;var i &amp;#61; 0&amp;#59; i &amp;#38;lt&amp;#59; this.items.length&amp;#59; i&amp;#43;&amp;#43;&amp;#41; &amp;#123;&lt;br /&gt;                item &amp;#61; this.items&amp;#91;i&amp;#93;&amp;#59;&lt;br /&gt;                if &amp;#40;&amp;#40;clause &amp;#61;&amp;#61; null &amp;#38;amp&amp;#59;&amp;#38;amp&amp;#59; dict&amp;#91;item&amp;#93; &amp;#61;&amp;#61; null&amp;#41; &amp;#124;&amp;#124; &amp;#40;clause &amp;#33;&amp;#61; null &amp;#38;amp&amp;#59;&amp;#38;amp&amp;#59; dict&amp;#91;clause&amp;#40;item&amp;#41;&amp;#93; &amp;#61;&amp;#61; null&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;                    if &amp;#40;clause &amp;#61;&amp;#61; null&amp;#41;&lt;br /&gt;                        dict&amp;#91;item&amp;#93; &amp;#61; true&amp;#59;&lt;br /&gt;                    else&lt;br /&gt;                        dict&amp;#91;clause&amp;#40;item&amp;#41;&amp;#93; &amp;#61; true&amp;#59;&lt;br /&gt;                    retVal&amp;#91;retVal.length&amp;#93; &amp;#61; item&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            dict &amp;#61; null&amp;#59;&lt;br /&gt;            return new JSLINQ&amp;#40;retVal&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;,&lt;br /&gt;</description><author>baywet</author><pubDate>Sat, 08 Dec 2012 22:24:46 GMT</pubDate><guid isPermaLink="false">Created Issue: Distinct function not working properly with an object [9775] 20121208102446P</guid></item><item><title>New Post: WildCards</title><link>http://jslinq.codeplex.com/discussions/397670</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Is there any wildcard available in the product? How are we able to run a query like&lt;/p&gt;
&lt;p&gt;Select Employees.Name from Employees where Employees.Name like 'S%' (returns all employees which their name starts with S)&lt;/p&gt;
&lt;/div&gt;</description><author>samanis</author><pubDate>Tue, 02 Oct 2012 10:15:36 GMT</pubDate><guid isPermaLink="false">New Post: WildCards 20121002101536A</guid></item><item><title>New Post: WildCards</title><link>http://jslinq.codeplex.com/discussions/397670</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Is there any wildcard available in the product? How are we able to run a query like&lt;/p&gt;
&lt;p&gt;Select Employees.Name from Employees where Employees.Name like 'S%' (returns all employees which their name starts with S)&lt;/p&gt;
&lt;/div&gt;</description><author>samanis</author><pubDate>Tue, 02 Oct 2012 10:15:36 GMT</pubDate><guid isPermaLink="false">New Post: WildCards 20121002101536A</guid></item><item><title>Source code checked in, #69631</title><link>http://jslinq.codeplex.com/SourceControl/changeset/changes/69631</link><description>Upgrade&amp;#58; New Version of LabDefaultTemplate.xaml. To upgrade your build definitions, please visit the following link&amp;#58; http&amp;#58;&amp;#47;&amp;#47;go.microsoft.com&amp;#47;fwlink&amp;#47;&amp;#63;LinkId&amp;#61;254563</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:13:48 GMT</pubDate><guid isPermaLink="false">Source code checked in, #69631 20121001091348P</guid></item><item><title>Source code checked in, #69630</title><link>http://jslinq.codeplex.com/SourceControl/changeset/changes/69630</link><description>Checked in by server upgrade</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 21:07:03 GMT</pubDate><guid isPermaLink="false">Source code checked in, #69630 20121001090703P</guid></item><item><title>Reviewed: v2.10 (Sep 03, 2012)</title><link>http://jslinq.codeplex.com/releases/view/28886#ReviewBy-gleutar</link><description>Rated 5 Stars &amp;#40;out of 5&amp;#41; - I&amp;#39;m thrilled&amp;#33; I love LINQ but wasn&amp;#39;t able to use it in my newest js project... unitl now&amp;#33; Keep up the good work&amp;#33;</description><author>gleutar</author><pubDate>Mon, 03 Sep 2012 10:49:22 GMT</pubDate><guid isPermaLink="false">Reviewed: v2.10 (Sep 03, 2012) 20120903104922A</guid></item><item><title>Updated Wiki: Home</title><link>http://jslinq.codeplex.com/wikipage?version=41</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 for JavaScript. It is simple to use and gives much needed power and flexibility to performing LINQ style queries agains traditional JavaScript Arrays. If you are using an Array, you can use LINQ to JavaScript to step up your game.&lt;br /&gt;
&lt;h2&gt;What is LINQ to JavaScript?&lt;/h2&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&amp;#39;t know what LINQ is; it&amp;#39;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;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; myList = [
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Chris&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Pearson&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Kate&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Johnson&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Josh&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Sutherland&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;John&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Ronald&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Steve&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Pinkerton&amp;quot;&lt;/span&gt;}
            ];
            
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; exampleArray = JSLINQ(myList)
                   .Where(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName == &lt;span style="color:#A31515;"&gt;&amp;quot;Chris&amp;quot;&lt;/span&gt;; })
                   .OrderBy(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item) { &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName; })
                   .Select(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName; });
&lt;/pre&gt;&lt;/div&gt;&lt;h2&gt;Using LINQ to JavaScript&lt;/h2&gt;We will use this Array for the following examples:&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; myList = [
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Chris&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Pearson&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Kate&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Johnson&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Josh&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Sutherland&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;John&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Ronald&amp;quot;&lt;/span&gt;},
            {FirstName:&lt;span style="color:#A31515;"&gt;&amp;quot;Steve&amp;quot;&lt;/span&gt;,LastName:&lt;span style="color:#A31515;"&gt;&amp;quot;Pinkerton&amp;quot;&lt;/span&gt;}
            ];
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Create an Instance of the JSLINQ object with your data&lt;/h3&gt;You need to create a new JSLINQ object and pass it the javascript array of data that you will be querying.&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; example = JSLINQ(myList);
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Using the Where operator to specify query criteria&lt;/h3&gt;In this case, we&amp;#39;re getting all items in the Array that have FirstName property set to Chris.&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; whereExample1 = JSLINQ(myList).
                      Where(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName == &lt;span style="color:#A31515;"&gt;&amp;quot;Chris&amp;quot;&lt;/span&gt;; });
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Using the Select operator to specify which data to return&lt;/h3&gt;In this case, we&amp;#39;re going to return only the FirstName property of each item in the Array.&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; selectTest2 = JSLINQ(myList).
                Select(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName; });
&lt;/pre&gt;&lt;/div&gt;
&lt;h3&gt;Using the OrderBy operator to determine how to sort the order of the items in the Array&lt;/h3&gt;In this case, we&amp;#39;re going to order them by the FirstName property.&lt;br /&gt;&lt;div style="color:Black;background-color:White;"&gt;&lt;pre&gt;
&lt;span style="color:Blue;"&gt;var&lt;/span&gt; sortTest1 = JSLINQ(myList)
             .OrderBy(&lt;span style="color:Blue;"&gt;function&lt;/span&gt;(item){ &lt;span style="color:Blue;"&gt;return&lt;/span&gt; item.FirstName; });
&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;Acticles / News&lt;/h2&gt;&lt;a href="http://secretgeek.net/JsLinq/"&gt;JSLinq Editor&lt;/a&gt;&lt;br /&gt;2010/03/16: &lt;a href="http://www.gregshackles.com/2010/03/linq-for-javascript-using-and-extending-jslinq/"&gt;LINQ for JavaScript: Using and Extending JSLINQ&lt;/a&gt;&lt;br /&gt;2008/01/24: &lt;a href="http://pietschsoft.com/post/2008/01/24/LINQ-to-JavaScript-%28JSLINQ%29-Open-Source-Project-Launched!.aspx"&gt;LINQ to JavaScript (JSLINQ) Open Source Project Launched!&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;Contributors&lt;/h2&gt;This project is maintained by &lt;a href="http://pietschsoft.com"&gt;Chris Pietschmann&lt;/a&gt;. He is a Microsoft MVP for Bing Maps, a Co-Founder of &lt;a href="http://carto.com"&gt;Carto LLC&lt;/a&gt;, and the Owner of &lt;a href="http://simplovation.com"&gt;Simplovation LLC&lt;/a&gt; a software development consulting company that specializes in Mapping/GIS related application development.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Fri, 04 May 2012 13:58:58 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20120504015858P</guid></item><item><title>Updated Wiki: Home</title><link>http://jslinq.codeplex.com/wikipage?version=40</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 for JavaScript. It is simple to use and gives much needed power and flexibility to performing LINQ style queries agains traditional JavaScript Arrays. If you are using an Array, you can use LINQ to JavaScript to step up your game.&lt;br /&gt;
&lt;h2&gt;What is LINQ to JavaScript?&lt;/h2&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&amp;#39;t know what LINQ is; it&amp;#39;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;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 = JSLINQ(myList)
                   .Where(function(item){ return item.FirstName == &amp;quot;Chris&amp;quot;; })
                   .OrderBy(function(item) { return item.FirstName; })
                   .Select(function(item){ return item.FirstName; });
&lt;/pre&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;h3&gt;Create an Instance of the JSLINQ object with your data&lt;/h3&gt;You need to create a new JSLINQ object and pass it the javascript array of data that you will be querying.&lt;br /&gt;&lt;pre&gt;
var example = JSLINQ(myList);
&lt;/pre&gt;&lt;br /&gt;
&lt;h3&gt;Using the Where operator to specify query criteria&lt;/h3&gt;In this case, we&amp;#39;re getting all items in the Array that have FirstName property set to Chris.&lt;br /&gt;&lt;pre&gt;
var whereExample1 = JSLINQ(myList).
                      Where(function(item){ return item.FirstName == &amp;quot;Chris&amp;quot;; });
&lt;/pre&gt;&lt;br /&gt;
&lt;h3&gt;Using the Select operator to specify which data to return&lt;/h3&gt;In this case, we&amp;#39;re going to return only the FirstName property of each item in the Array.&lt;br /&gt;&lt;pre&gt;
var selectTest2 = JSLINQ(myList).
                Select(function(item){ return item.FirstName; });
&lt;/pre&gt;&lt;br /&gt;
&lt;h3&gt;Using the OrderBy operator to determine how to sort the order of the items in the Array&lt;/h3&gt;In this case, we&amp;#39;re going to order them by the FirstName property.&lt;br /&gt;&lt;pre&gt;
var sortTest1 = JSLINQ(myList)
             .OrderBy(function(item){ return item.FirstName; });
&lt;/pre&gt;&lt;br /&gt;
&lt;h2&gt;Acticles / News&lt;/h2&gt;&lt;a href="http://secretgeek.net/JsLinq/"&gt;JSLinq Editor&lt;/a&gt;&lt;br /&gt;2010/03/16: &lt;a href="http://www.gregshackles.com/2010/03/linq-for-javascript-using-and-extending-jslinq/"&gt;LINQ for JavaScript: Using and Extending JSLINQ&lt;/a&gt;&lt;br /&gt;2008/01/24: &lt;a href="http://pietschsoft.com/post/2008/01/24/LINQ-to-JavaScript-%28JSLINQ%29-Open-Source-Project-Launched!.aspx"&gt;LINQ to JavaScript (JSLINQ) Open Source Project Launched!&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;Contributors&lt;/h2&gt;This project is maintained by &lt;a href="http://pietschsoft.com"&gt;Chris Pietschmann&lt;/a&gt;. He is a Microsoft MVP for Bing Maps, a Co-Founder of &lt;a href="http://carto.com"&gt;Carto LLC&lt;/a&gt;, and the Owner of &lt;a href="http://simplovation.com"&gt;Simplovation LLC&lt;/a&gt; a software development consulting company that specializes in Mapping/GIS related application development.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Fri, 04 May 2012 13:57:19 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20120504015719P</guid></item><item><title>Updated Wiki: Home</title><link>http://jslinq.codeplex.com/wikipage?version=39</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 for JavaScript. It is simple to use and gives much needed power and flexibility to performing LINQ style queries agains traditional JavaScript Arrays. If you are using an Array, you can use LINQ to JavaScript to step up your game.&lt;br /&gt;
&lt;h1&gt;What is LINQ to JavaScript?&lt;/h1&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&amp;#39;t know what LINQ is; it&amp;#39;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;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 = JSLINQ(myList)
                   .Where(function(item){ return item.FirstName == &amp;quot;Chris&amp;quot;; })
                   .OrderBy(function(item) { return item.FirstName; })
                   .Select(function(item){ return item.FirstName; });
&lt;/pre&gt;
&lt;h1&gt;Using LINQ to JavaScript&lt;/h1&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;h3&gt;Create an Instance of the JSLINQ object with your data&lt;/h3&gt;You need to create a new JSLINQ object and pass it the javascript array of data that you will be querying.&lt;br /&gt;&lt;pre&gt;
var example = JSLINQ(myList);
&lt;/pre&gt;&lt;br /&gt;
&lt;h3&gt;Using the Where operator to specify query criteria&lt;/h3&gt;In this case, we&amp;#39;re getting all items in the Array that have FirstName property set to Chris.&lt;br /&gt;&lt;pre&gt;
var whereExample1 = JSLINQ(myList).
                      Where(function(item){ return item.FirstName == &amp;quot;Chris&amp;quot;; });
&lt;/pre&gt;&lt;br /&gt;
&lt;h3&gt;Using the Select operator to specify which data to return&lt;/h3&gt;In this case, we&amp;#39;re going to return only the FirstName property of each item in the Array.&lt;br /&gt;&lt;pre&gt;
var selectTest2 = JSLINQ(myList).
                Select(function(item){ return item.FirstName; });
&lt;/pre&gt;&lt;br /&gt;
&lt;h3&gt;Using the OrderBy operator to determine how to sort the order of the items in the Array&lt;/h3&gt;In this case, we&amp;#39;re going to order them by the FirstName property.&lt;br /&gt;&lt;pre&gt;
var sortTest1 = JSLINQ(myList)
             .OrderBy(function(item){ return item.FirstName; });
&lt;/pre&gt;&lt;br /&gt;
&lt;h2&gt;Acticles / News&lt;/h2&gt;&lt;a href="http://secretgeek.net/JsLinq/"&gt;JSLinq Editor&lt;/a&gt;&lt;br /&gt;2010/03/16: &lt;a href="http://www.gregshackles.com/2010/03/linq-for-javascript-using-and-extending-jslinq/"&gt;LINQ for JavaScript: Using and Extending JSLINQ&lt;/a&gt;&lt;br /&gt;2008/01/24: &lt;a href="http://pietschsoft.com/post/2008/01/24/LINQ-to-JavaScript-%28JSLINQ%29-Open-Source-Project-Launched!.aspx"&gt;LINQ to JavaScript (JSLINQ) Open Source Project Launched!&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;Contributors&lt;/h2&gt;This project is maintained by &lt;a href="http://pietschsoft.com"&gt;Chris Pietschmann&lt;/a&gt;. He is a Microsoft MVP for Bing Maps, a Co-Founder of &lt;a href="http://carto.com"&gt;Carto LLC&lt;/a&gt;, and the Owner of &lt;a href="http://simplovation.com"&gt;Simplovation LLC&lt;/a&gt; a software development consulting company that specializes in Mapping/GIS related application development.&lt;/div&gt;&lt;div class="ClearBoth"&gt;&lt;/div&gt;</description><author>crpietschmann</author><pubDate>Fri, 04 May 2012 13:56:48 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20120504015648P</guid></item></channel></rss>