Created
August 5, 2022 06:46
-
-
Save bootrino/980d1825e338a483421efc6fa4064070 to your computer and use it in GitHub Desktop.
TypeScript destructure whilst ignoring null/undefined fields:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
refer here: | |
https://www.bennadel.com/blog/3590-you-can-safely-apply-object-spread-to-null-and-undefined-values-in-typescript-3-2-4.htm | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment