Is there a more compact way to do this sort of initialization?
for (var i = 0; i < arraySize; i++) array[i] = value;
See Question&Answers more detail:osIs there a more compact way to do this sort of initialization?
for (var i = 0; i < arraySize; i++) array[i] = value;
See Question&Answers more detail:os