Javascript Equivalent to C# LINQ Select

前端 未结 12 1533
孤街浪徒
孤街浪徒 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 06:58

    You can also try linq.js

    In linq.js your

    selectedFruits.select(fruit=>fruit.id);
    

    will be

    Enumerable.From(selectedFruits).Select(function (fruit) { return fruit.id;  });
    

提交回复
热议问题