Relative Content

Tag Archive for javascripttypescript

How to make TypeScript see variable reassignments in lambdas?

I am running a lambda function predicate over a list of values to find the first value matching the predicate. However, in addition to finding the right value, I want to store the result of an internal calculation in the lambda function for later.