Skip to content

Commit

Permalink
Make collection-return.md a little bit more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Lior Shub authored and ganimomer committed Oct 10, 2018
1 parent 5b4e4c0 commit 2249b27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/rules/collection-return.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Collection Return Statement

When using a lodash collection method that isn't forEach, the iteratee should return a value, otherwise it could result in either unclear code or unexpected results.
When using a Lodash collection method that isn't forEach, the iteratee should return a value, otherwise it could result in either unclear code or unexpected results.

## Rule Details

Expand All @@ -10,11 +10,11 @@ The following patterns are considered warnings:

```js

_.map(arr, function(x) { console.log(x) });
_.map(arr, function(x) { console.log(x); });

_.some(arr, function(x) { if (x.a) {f(x);});
_.some(arr, function(x) { if (x.a) {f(x); });

_.every(collection, x => { f(x);});
_.every(collection, x => { f(x); });

```
Expand Down

0 comments on commit 2249b27

Please sign in to comment.