What does 3 dots mean in typescript?

The three dots are known as the spread operator from Typescript (also from ES7). The spread operator return all elements of an array. Like you would write each element separately: let myArr = [1, 2, 3]; return [1, 2, 3]; //is the same as: return […myArr];

Sizin İçin Seçtik  What is the rest parameter and spread operator in JS?

Leave a Reply

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

What does 3 dots mean in typescript?

The three dots are known as the spread operator from Typescript (also from ES7). The spread operator return all elements of an array. Like you would write each element separately: let myArr = [1, 2, 3]; return [1, 2, 3]; //is the same as: return […myArr];

Sizin İçin Seçtik  What do three dots mean in React?

Leave a Reply

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