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); }