Is there a way in Typescript I can initialize an array with values from n to m without naming all elements?
What I use today:
let lst : number [] = [5,6,7,8];
What I am looking for:
let lst : number [] = [5 .. 8];
Is there a way in Typescript I can initialize an array with values from n to m without naming all elements?
What I use today:
let lst : number [] = [5,6,7,8];
What I am looking for:
let lst : number [] = [5 .. 8];