Chris Pietschmann has started an open source project called
JSLINQ, was recently started on CodePlex that is an implementation of LINQ to Objects to the JavaScript language. This looks rather interesting and I will be keeping my eye on this. There is a 1.0 release available for download on the project site.
Example Usage
1
var myList = [
2
{FirstName:"Chris",LastName:"Pearson"},
3
{FirstName:"Kate",LastName:"Johnson"},
4
{FirstName:"Josh",LastName:"Sutherland"},
5
{FirstName:"John",LastName:"Ronald"},
6
{FirstName:"Steve",LastName:"Pinkerton"}
7
];
8
9
var exampeArray = From(myList).
10
Where("item.FirstName == 'Chris'").
11
OrderBy("item.FirstName").
12
Select("item.FirstName");
13
14
I haven't looked at the actual code yet, but looking at the example, I think that the functions should be changed a bit:
I can't wait to get home so I can dig in to it and start playing around with it. Thanks for getting this rolling Chris.