Skip to content

Commit

Permalink
fix: spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Oct 25, 2018
1 parent 9c005da commit 6bd36d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public/drafts/jq-recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,10 @@ Find duplicates in an array based on a key:

```jq
[
reduce .[].id as $item (
{}; # initial value
.[$item] += 1
) | to_entries[] | select(.value > 1)
reduce .[].id as $item (
{}; # initial value
.[$item] += 1
) | to_entries[] | select(.value > 1)
] | from_entries
```

Expand Down

0 comments on commit 6bd36d3

Please sign in to comment.