MyNonNullable
EasyImplement MyNonNullable which excludes null and undefined from type.
TypeScript•UTF-8
Run your code to see results.
Click the Run button above
MyNonNullable
EasyImplement 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.