Alex Rivera | Logout

What is the leading LINQ for JavaScript library?

Asked 2010-03-19T14:31:16.553
99

I'm looking for a JavaScript library that will allow me to query complex JSON objects using a LINQ-like syntax. A quick search found a couple of promising options that look they might offer what I need:

LINQ to JavaScript and jLinq

  • Does any one have any experience using them?
  • What are some pros and cons?
  • Is the performance comparable?
  • Does the function-passing syntax of LINQ to JavaScript offer any hidden benefits (I personally find the syntax of jLinq more appealing on first glance)?
  • What have you found lacking in either project?
  • Did you ever try contacting the authors? How responsive were they?
  • What project is more widely used?

I think it will be the first one to get a thorough try-out.

Edit
Report

2 Answers

11

I recommend taking a look at underscore.js. It is not a direct LINQ port like some of the others, but is a very comfortable "LINQ-like" experience. It supports all the filter, sort and project options that I need and has excellent documentation and community support.

As a bonus for Knockout users, there is UnderscoreKO that adds Underscore's array methods to Knockout's observable arrays. Demo

answered 2012-09-02T15:29:59.410
2

I'm looking for something like this myself and came across...

http://www.hugoware.net/Projects/jLinq

This looks really great! Maybe I just don't understand the point of Rx and observables compared to setting event handlers through something like jQuery.

answered 2013-01-19T23:06:47.003

Your Answer