Linq implemented in TypeScript (for fun)

Linq, the powerful system introduced on .NET 3.5 is a set of methods that allows you to manipulate collections and data.

I brought those methods to TypeScript, the source code is on my Github. (Not extensively tested)

2015-06-08 06-06-32-819
2015-06-08 06-06-32-819

The syntax is quite similar and the usage is essentially the same.

var three = [1, 2, 3].AsLinq().FirstOrDefault(o => o == 3);

I also created a Visual Studio Extension to enable TypeScript in Unit Tests.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade