---
title: "Discussion on \"RemoveUndefined<T>,\nTS: Conditional Types & The infer Keyword\" | Hashnode"
description: "Discussion on \"RemoveUndefined<T>,\nTS: Conditional Types & The infer Keyword\". Hey! In this blog, we are going to make a TypeScript type that can be used to remove undefined from an array type and in this adventure, we would discuss TypeScript Conditional Types and the infer keyword.\nAll the code used in this blog is available ..."
url: "https://hashnode.com/posts/removeundefined-ts-conditional-types-and-the-infer-keyword/61f48e456bb59d5767db493b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [RemoveUndefined<T>, TS: Conditional Types & The infer Keyword](https://aryaman1706.hashnode.dev/removeundefined-ts-conditional-types-and-the-infer-keyword?utm_source=hashnode&utm_medium=feed)

Hey! In this blog, we are going to make a TypeScript type that can be used to remove undefined from an array type and in this adventure, we would discuss TypeScript Conditional Types and the infer keyword. All the code used in this blog is available ...

Jan 29, 2022 · 10 min read · aryaman1706.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Aryaman Grover](https://hashnode.com/@Aryaman)

@Aryaman

  
[View profile](https://hashnode.com/@Aryaman)

Backend Developer Intern @GoKwik

Hey! I am a developer working majorly with JavaScript and TypeScript. On a look out for learning opportunities and great rap music.

## Responses 2

Markdown supported · ⌘↵ to post

[Aniket Biswas](https://hashnode.com/@aniketbiswas21)

[Jan 29, 2022](https://hashnode.com/posts/removeundefined-ts-conditional-types-and-the-infer-keyword/61f48e456bb59d5767db493b/comment/61f540a96bb59d5767db63f5)

Really informative. Thanks for this :)

[Aryaman Grover](https://hashnode.com/@Aryaman)

[Jan 29, 2022](https://hashnode.com/posts/removeundefined-ts-conditional-types-and-the-infer-keyword/61f48e456bb59d5767db493b/comment/61f540a96bb59d5767db63f5#reply-61f551cd6bb59d5767db6756)

Thanks a lot!

[Saurav Shrivastav](https://hashnode.com/@saurav23)

[Jan 29, 2022](https://hashnode.com/posts/removeundefined-ts-conditional-types-and-the-infer-keyword/61f48e456bb59d5767db493b/comment/61f537d86bb59d5767db6243)

Nice read Aryaman!

[Aryaman Grover](https://hashnode.com/@Aryaman)

[Jan 29, 2022](https://hashnode.com/posts/removeundefined-ts-conditional-types-and-the-infer-keyword/61f48e456bb59d5767db493b/comment/61f537d86bb59d5767db6243#reply-61f5393c6bb59d5767db6277)

Thanks a lot!
