Skip to content

Commit

Permalink
Change rangeLength signature back
Browse files Browse the repository at this point in the history
  • Loading branch information
afshin committed Aug 16, 2022
1 parent bc2b48f commit 84ec11b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/algorithm/src/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ namespace Private {
*
* @returns The number of steps need to traverse the range.
*/
export function rangeLength(start: number, stop: number, step: number) {
export function rangeLength(
start: number,
stop: number,
step: number
): number {
if (step === 0) {
return Infinity;
}
Expand Down

0 comments on commit 84ec11b

Please sign in to comment.