Remove valueOrDefault
This commit is contained in:
@ -1,8 +0,0 @@
|
||||
### Value or default
|
||||
|
||||
Returns value, or default value if passed value is `falsy`.
|
||||
|
||||
```js
|
||||
const valueOrDefault = (value, d) => value || d;
|
||||
// valueOrDefault(NaN, 30) -> 30
|
||||
```
|
||||
Reference in New Issue
Block a user