javascriptlinqlinq.js

Linq.js Enumerable.from()


I am new to this very very nice Linq.js library that I have just discovered. I am following the examples to write queries like:

Enumerable.from(jsonArray).select(...); // noice

Can I do this shortcut?

jsonArray.select(...); // error as expected

I read the tests in library, seems like pretty much every call starts with Enumerable.someCommand();. I am wondering if the linq commands have been applied to the correct prototypes in js, so I can call them in the style of 2nd line of code. am I not aware of it because I am a newbie?


Solution

  • I am the creator of the open source project http://www.jinqJs.com.

    You could simply do jinqJs().from(jsonArray).select();

    Let me know if I could be of any more help