Linq methods in TypeScript