mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-06 02:26:43 +00:00
fix: drop trailing whitespace
This commit is contained in:
parent
11294984aa
commit
0ebee1d815
1 changed files with 2 additions and 2 deletions
|
|
@ -946,7 +946,7 @@ times(3)(console.log)
|
||||||
// 3
|
// 3
|
||||||
// 2
|
// 2
|
||||||
// 1
|
// 1
|
||||||
times(-1)(console.log)
|
times(-1)(console.log)
|
||||||
// RangeError: Maximum call stack size exceeded
|
// RangeError: Maximum call stack size exceeded
|
||||||
```
|
```
|
||||||
### Avoiding partial functions
|
### Avoiding partial functions
|
||||||
|
|
@ -980,7 +980,7 @@ times(3)(console.log)
|
||||||
// 3
|
// 3
|
||||||
// 2
|
// 2
|
||||||
// 1
|
// 1
|
||||||
times(-1)(console.log)
|
times(-1)(console.log)
|
||||||
// won't execute anything
|
// 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.
|
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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue