From 8f98cc066c866e32a95fa6b92fc77ef00d6ae3e4 Mon Sep 17 00:00:00 2001 From: goodmice Date: Thu, 8 Dec 2022 08:26:10 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D1=83=D0=BD=D0=BA=D1=86=D0=B8=D1=8F=20ra?= =?UTF-8?q?nge=20=D1=83=D1=81=D0=BA=D0=BE=D1=80=D0=B5=D0=BD=D0=B0=20=D0=B2?= =?UTF-8?q?=205=20=D1=80=D0=B0=D0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/functions/numbers.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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