Answers for "create an array for looping typescript"

0

create an array for looping typescript

loopTimes: number[] = Array(31);

for (let x = 0; x < loopTimes.length; x++) {
    console.log('Index/Loop No: ', [x]);
    // Do something here...
}
Posted by: Guest on July-16-2020

Code answers related to "create an array for looping typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language