diff --git a/src/utils/functions/numbers.tsx b/src/utils/functions/numbers.tsx index 0a686f1..6efb69c 100644 --- a/src/utils/functions/numbers.tsx +++ b/src/utils/functions/numbers.tsx @@ -23,7 +23,7 @@ export const limitValue = (min: T, max: T) => (value: T) => { * * @returns Массив чисел в диапазоне от `start` до `end` */ -export const range = (end: number, start: number = 0) => Array.from({ length: end - start }, (_, i) => start + i) +export const range = (end: number, start: number = 0) => Array(end - start).fill(undefined).map((_, i) => start + i) export const pretify = (n: number): number | null => { if (!Number.isFinite(n)) return null