Skip to content

Commit

Permalink
fix: drop trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hekmekk committed Oct 18, 2018
1 parent e03612e commit a7e26ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ times(3)(console.log)
// 3
// 2
// 1
times(-1)(console.log)
times(-1)(console.log)
// RangeError: Maximum call stack size exceeded
```
### Avoiding partial functions
Expand Down Expand Up @@ -980,7 +980,7 @@ times(3)(console.log)
// 3
// 2
// 1
times(-1)(console.log)
times(-1)(console.log)
// won't execute anything
```
If you will change all your functions from partial to total, it can prevent you from having runtime exceptions, will make code easier to reason about and easier to maintain.
Expand Down

0 comments on commit a7e26ce

Please sign in to comment.