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.

By continuing to use the platform, you accept the terms of the Privacy Policy and the use of cookies.