Changing instances of the word falsey to falsy for consistency sake, and especially as there is the array FilterFalsy function that is spelled without an e.

This commit is contained in:
Jay Wengrow
2019-07-04 14:41:14 -05:00
parent 3933cce671
commit 30eb6072c3
9 changed files with 10 additions and 10 deletions

View File

@ -1,8 +1,8 @@
### compact
Removes falsey values from an array.
Removes falsy values from an array.
Use `Array.prototype.filter()` to filter out falsey values (`false`, `null`, `0`, `""`, `undefined`, and `NaN`).
Use `Array.prototype.filter()` to filter out falsy values (`false`, `null`, `0`, `""`, `undefined`, and `NaN`).
```js
const compact = arr => arr.filter(Boolean);