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 does 3 dots mean in React?

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  How many Loopring coins are there?

Leave a Reply

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