Javascript Equivalent to C# LINQ Select

前端 未结 12 1524
孤街浪徒
孤街浪徒 2020-12-02 06:33

Following this question here :

Using the checked binding in knockout with a list of checkboxes checks all the checkboxes

I\'ve c

12条回答
  •  天命终不由人
    2020-12-02 07:02

    I am answering the title of the question rather than the original question which was more specific.

    With the new features of Javascript like iterators and generator functions and objects, something like LINQ for Javascript becomes possible. Note that linq.js, for example, uses a completely different approach, using regular expressions, probably to overcome the lack of support in the language at the time.

    With that being said, I've written a LINQ library for Javascript and you can find it at https://github.com/Siderite/LInQer. Comments and discussion at https://siderite.dev/blog/linq-in-javascript-linqer.

    From previous answers, only Manipula seems to be what one would expect from a LINQ port in Javascript.

提交回复
热议问题