fix: drop trailing whitespace

This commit is contained in:
Rea Sand 2018-10-18 11:59:54 +02:00 committed by Jethro Larson
parent 11294984aa
commit 0ebee1d815

View file

@ -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.