This project is read-only.

Welcome to Linquid JS's home on Codeplex!

Linquid JS aims to be as full a port as makes sense of the System.Linq.Enumerable lass to JavaScript. You can read more about the functionality it provides at: http://msdn.microsoft.com/en-us/library/system.linq.enumerable.aspx.

Linquid JS plays nice with jQuery http://www.jquery.com/, giving you an even more robust set of tools for locating and manipulating elements in the DOM.

Example usage of Linquid JS

<script type="text/javascript" src="linquid.js"></script>
<script type="text/javascript">
//Modifies Array.prototype so that all arrays have LINQ functions attached to them
//Alternatively, linq.uify$() could be called to register with jQuery using $.fn.extend()
//or linq.uify(o) may be called on any object that exposes a length property and
//a set of integer valued properties to register LINQ functions on it
linq.uify();
var numbers = [1, 2, 3, 4];

//Get all the odd numbers from the list
var oddNumbers = numbers.Where("x=> x % 2 == 1");

//or
var altOddNumbers = numbers.Where(function(x) { return x % 2 == 1; });
</script>

Initial Release Function Set

See the documentation for a comprehensive list of all that is in the Linquid JS framework.
  • All
  • Any
  • Aggregate
  • Average
  • Concat
  • Contains
  • Distinct
  • Each
  • ElementAt
  • ElementAtOrDefault
  • Empty
  • Except
  • First
  • FirstOrDefault
  • GroupBy
  • IndexOf
  • Intersect
  • Join
  • Last
  • LastOrDefault
  • Max
  • Min
  • OfType
  • OrderBy
  • OrderByDescending
  • Range
  • Repeat
  • Reverse
  • Select
  • SelectMany
  • SequenceEquals
  • Single
  • SingleOrDefault
  • Skip
  • SkipWhile
  • Sum
  • Take
  • TakeWhile
  • Union
  • Where
  • Zip

Last edited Sep 24, 2011 at 9:26 AM by mlorbetske, version 9