Remove valueOrDefault

This commit is contained in:
Angelos Chalaris
2017-12-16 18:01:59 +02:00
parent ba8c1ccbc4
commit 8f5aa15b3f
3 changed files with 0 additions and 21 deletions

View File

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