MyNonNullable

Easy

Implement MyNonNullable which excludes null and undefined from type.

Examples:

Input 1: type Result = MyNonNullable<string | null | undefined>
Output 1: string
Output
Run your code to see results.