TypeScript for JavaScript Developers Part 9: Custom Types with Generics
Channel: Jeremy Likness
Date: 2019-03-05

In this short clip, a custom type is defined using generics to define a "predicate" or a simple method that takes an item of a certain type and returns a boolean. This simplifies the definition of the "find" function but doesn't change any of the generated JavaScript.