kutyel / linq.ts

🌀LINQ for TypeScript

Home Page:http://kutyel.github.io/linq.ts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SingleOrDefault doesnt accept predicate?

grofit opened this issue · comments

commented

In .net Linq you can do myList.SingleOrDefault(x => x.someId == requiredId); but I noticed in here there is no overload to support this like in .net.

https://msdn.microsoft.com/en-us/library/bb549274(v=vs.110).aspx

True, should be done, and the same goes for Single(), Pull Requests are welcome! 🎉

commented

PR raised for this.