Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 822c0df commit b79e951Copy full SHA for b79e951
README.md
@@ -374,22 +374,25 @@ Other Style Guides
374
});
375
376
// bad
377
- [1, 2, 3].filter((x) => {
378
- if (x > 2) {
379
- return true;
+ inbox].filter((msg) => {
+ const { subject, author } = msg;
+ if (subject === 'Mockingbird') {
380
+ return author === 'Harper Lee';
381
} else {
382
return false;
383
}
384
385
386
// good
387
[1, 2, 3].filter((x) => {
388
389
- }
390
391
392
+ }
393
- return false;
- });
394
+ return false;
395
+ });
396
```
397
398
**[⬆ back to top](#table-of-contents)**
0 commit comments