From c0983d19ccd8e89f1c14d3ba4d514c4f9b0fc198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Henrique?= <137122689+josehenriques10@users.noreply.github.com> Date: Sun, 2 Jun 2024 09:40:37 -0300 Subject: [PATCH] Update functions.export.ts --- src/modules/functions.export.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/functions.export.ts b/src/modules/functions.export.ts index b68b581..2c83b5e 100644 --- a/src/modules/functions.export.ts +++ b/src/modules/functions.export.ts @@ -1,13 +1,13 @@ -export function range(start: number, stop: number, step = 1) { +export function range(start: number, stop: number, step: number = 1) { const isPositive = step > 0; - let numbers = []; + let numbers: Array = []; if (stop === undefined) { stop = start; start = 0; } - for (let i = start; isPositive ? i < stop : i > stop; i += step) { + for (let i: number = start; isPositive ? i < stop : i > stop; i += step) { numbers.push(i); }