Top "Linq.js" questions

An implementation of List and Sequence operations for JavaScript, as inspired by .NET's Language INtegrated Query (LINQ).

linq.js return value of (default) FirstOrDefault

Trying to check on the result of linq.js FirstOrDefault(), but checking for null or undefined isn't working. Having some …

javascript linq.js
linqjs group by with a sum

This might seems like an easy question but I'm struggling with the linqjs syntax. Given the following basic JSON: { "DateEvent": "2013…

javascript jquery linq linq.js
linq.js to group by array of objects in javascript

I want to use linq.js to group the following data by date. data2 = [{ "date": 1399298400.0, "adId": 1057946139383, "impressions": 1000000 }, { "date": 1399298400.0, "adId": 3301784671323, "impressions": 535714 }...... …

javascript linq linq.js
Select two fields out of three fields from Json data using Linq.js

I need to select two fields out of three fields from Json data using Linq.js Required output should be [{ "…

javascript underscore.js linq.js
linq.js groupby with Json

This is my Json Object in simplified form. var jsonObject = [ {"City":"Monroe","Country":"USA","Latitude":47.8524,"Longitude":-121.98151}, {"City":"Austin","Country":"…

javascript jquery jquery-plugins linq.js
where function of Linq.js on Json data not working

How to correct following code for desired output, var Data = [{ "A": -27, "B": -39 }, { "A": 28, "B": 0}] var filter = "x[A]==28"; …

javascript underscore.js linq.js