What do three dots above and below code mean?

When we see three dots (…) in the code, it’s either rest parameters or the spread operator . There’s an easy way to distinguish between them: When three dots (…) is at the end of function parameters, it’s “rest parameters” and gathers the rest of the list of arguments into an array.

Sizin İçin Seçtik  What does 3 dots mean in typescript?

Leave a Reply

Your email address will not be published. Required fields are marked *

What do three dots above and below code mean?

When we see three dots (…) in the code, it’s either rest parameters or the spread operator . There’s an easy way to distinguish between them: When three dots (…) is at the end of function parameters, it’s “rest parameters” and gathers the rest of the list of arguments into an array.

Sizin İçin Seçtik  On what types can you use the spread operator?

Leave a Reply

Your email address will not be published. Required fields are marked *