Skip to content

Commit

Permalink
Adds the documentation for _.property
Browse files Browse the repository at this point in the history
  • Loading branch information
lfac-pt committed Nov 20, 2013
1 parent 3fec9ee commit bfd43df
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
<li>- <a href="#noConflict">noConflict</a></li>
<li>- <a href="#identity">identity</a></li>
<li>- <a href="#constant">constant</a></li>
<li>- <a href="#property">property</a></li>
<li>- <a href="#times">times</a></li>
<li>- <a href="#random">random</a></li>
<li>- <a href="#mixin">mixin</a></li>
Expand Down Expand Up @@ -1560,6 +1561,16 @@ <h2 id="utility">Utility Functions</h2>
<pre>
var moe = {name: 'moe'};
moe === _.constant(moe)();
=&gt; true</pre>

<p id="property">
<b class="header">property</b><code>_.property(key)</code>
<br />
Creates a function that gets the value of <tt>key</tt> in the object passed as parameter.
</p>
<pre>
var moe = {name: 'moe'};
'moe' === _.property('name')(moe);
=&gt; true</pre>

<p id="times">
Expand Down

0 comments on commit bfd43df

Please sign in to comment.