I am getting accross this fiddle link about knockout cascading dropdownlist
If I refer to this code:
viewModel.years = ko.dependentObservable(function() {
return Enumerable.From(makeModelList).Select(function(it) {
return it.year;
}).OrderBy(function(it) {
return it.year;
}).Distinct().ToArray();
}, viewModel);
at the line the Enumerable.From().Select…
It is very much as a Linq expression call from C#, is it Javascript or Jquery ?
thanks if you have any link about it.
Cheers all
I advise you to look at
underscorejsor it’s fork lodash. Coming from a .NET background myself, I know thatLINQis great and I really love it. However, those libraries I mentioned do pretty much the same thing but:I did the mistake and used one of those
LINQlibraries and I really wish I hadn’t because of the things that I outlined.