Skip to content

Commit

Permalink
Merge pull request jashkenas#2743 from nowke/add-size-example
Browse files Browse the repository at this point in the history
Add list example for _.size
  • Loading branch information
captbaritone committed May 10, 2018
2 parents ae93330 + 984867b commit c3f3582
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,9 @@ <h2 id="collections">Collection Functions (Arrays or Objects)</h2>
Return the number of values in the <b>list</b>.
</p>
<pre>
_.size([1, 2, 3, 4, 5]);
=&gt; 5

_.size({one: 1, two: 2, three: 3});
=&gt; 3
</pre>
Expand Down

0 comments on commit c3f3582

Please sign in to comment.