http://jslinq.codeplex.com/
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 exampleArray = JSLINQ(myList)
10: .Where(function(item){ return item.FirstName == "Chris"; })
11: .OrderBy(function(item) { return item.FirstName; })
12: .Select(function(item){ return item.FirstName; });
posted @ giovedì 25 febbraio 2010 04:02