We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4923d2 commit 4aee7f8Copy full SHA for 4aee7f8
src/lib/core/datetime/native-date-adapter.ts
@@ -31,7 +31,7 @@ const DEFAULT_DAY_OF_WEEK_NAMES = {
31
32
/** Creates an array and fills it with values. */
33
function range<T>(length: number, valueFunction: (index: number) => T): T[] {
34
- const valuesArray = [];
+ const valuesArray = Array(length);
35
for (let i = 0; i < length; i++) {
36
valuesArray[i] = valueFunction(i);
37
}
0 commit comments