Skip to content

Commit

Permalink
Merge pull request #2623 from Florian-R/matches-link
Browse files Browse the repository at this point in the history
Doc: Add links to matches.
  • Loading branch information
captbaritone authored Nov 9, 2016
2 parents 4c6c296 + b245611 commit ce09af4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ <h2 id="collections">Collection Functions (Arrays or Objects)</h2>
<p id="findWhere">
<b class="header">findWhere</b><code>_.findWhere(list, properties)</code>
<br />
Looks through the <b>list</b> and returns the <i>first</i> value that matches
Looks through the <b>list</b> and returns the <i>first</i> value that <a href="#matches">matches</a>
all of the key-value pairs listed in <b>properties</b>.
</p>
<p>
Expand All @@ -604,7 +604,7 @@ <h2 id="collections">Collection Functions (Arrays or Objects)</h2>
<b class="header">where</b><code>_.where(list, properties)</code>
<br />
Looks through each value in the <b>list</b>, returning an array of all
the values that contain all of the key-value pairs listed in <b>properties</b>.
the values that <a href="#matches">matches</a> the key-value pairs listed in <b>properties</b>.
</p>
<pre>
_.where(listOfPlays, {author: "Shakespeare", year: 1611});
Expand Down

0 comments on commit ce09af4

Please sign in to comment.