Understand the basics of the spread operator and use it properly in your code. Learn how to use it with arrays and object structures. We also learn the rest operator. I tried to collect the most common use cases I have seen implemented in production codebases.
Read the article with the coding examples:
https://nicotsou.com/tltr-typescript-...
Contents
00:00 Intro
01:21 Spread Operator with Arrays
04:56 Spread Operator with Object structures
15:34 The rest operator
17:58 Use rest in function arguments
19:47 Outro
Links
My new ✨TypeScript course:
https://tltr-typescript.com
The playlist with all the videos in the series:
• TLTR; TypeScript
Fun with TypeScript Unions:
• Fun with Unions in TypeScript
This video belongs to my series Too Long To Read TypeScript. Every episode covers in detail a core concept of the language.
❤️ How to support this channel?
Like this video
Subscribe to the channel
Share this video with your friends on social media (only if it helped you)
Check out my course