IMO, one of the main concerns of the TypeScript language is to support the existing vanilla JavaScript code. This is the impression I had at first glance. Take a look at the
In addition to @chuckj answer: You can also use an arrow function expression in TypeScript (is kind of a lambda in Java / .NET)
arrow function expression
lambda
function sum(...nums: number[]): number { return nums.reduce((a, b) => a + b, 0); }