Skip to content

Commit

Permalink
fix order of arguments in toLength
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinMalfait committed Sep 8, 2023
1 parent e55a076 commit a49c24b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toLength.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { reduce } from './reduce'

export function toLength() {
return reduce((_value, acc) => acc + 1, 0)
return reduce((acc) => acc + 1, 0)
}

0 comments on commit a49c24b

Please sign in to comment.