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 b0227e8 commit 8cb47a7
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 8cb47a7

Please sign in to comment.