Updated examples
This commit is contained in:
committed by
Agamemnon Zorbas
parent
99a07d22dd
commit
97c250bcfb
@ -9,5 +9,5 @@ const compact = arr => arr.filter(Boolean);
|
||||
```
|
||||
|
||||
```js
|
||||
compact([0, 1, false, 2, '', 3, 'a', 'e'*23, NaN, 's', 34]) -> [ 1, 2, 3, 'a', 's', 34 ]
|
||||
compact([0, 1, false, 2, '', 3, 'a', 'e'*23, NaN, 's', 34]) // [ 1, 2, 3, 'a', 's', 34 ]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user