Following this question here :
Using the checked binding in knockout with a list of checkboxes checks all the checkboxes
I\'ve c
The most similar C# Select analogue would be a map function.
Just use:
var ids = selectedFruits.map(fruit => fruit.id);
to select all ids from selectedFruits array.
It doesn't require any external dependencies, just pure JavaScript. You can find map documentation here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map