Exercise #59: Type Predicates With Generics
Advanced Patterns ยท 03-type-predicates-assertion-functions
Go back to exercises
Open in TypeScript Playground
Goal
Goal: Make `isNode` a generic type predicate so filtering narrows to `T`.
Check Solution
Run "Check Solution" to validate your code in the browser.