IEnumerable Implementation for JavaScript. I based this on Microsoft's IEnunermable documentation. I've found this really handy when doing back-end programming in C# and decided I'd like something like this for JavaScript. It doesn't use C#'s implemetation of lambda functions so developers still need to have some understanding of JavaScript's functions.
How thins work and examples. All functions should be function( element ) { [some execution] return [some result];} unless otherwise specified.Variables in brackets are optional.
To use this, create an array and put it through the Linq function. var linqObj = Linq( AnArray ) ; Returns true or false based on whether any element returns true for the function fn. Calculates the average of the array. If there a function is passed, it uses the value returned by the function to calculate the average. Takes an array and concatenates it to the end of the Linq object's array and returns a new Linq object.