Skip to content

Commit

Permalink
Merge pull request jashkenas#2161 from smelnikov/result-doc-fix
Browse files Browse the repository at this point in the history
described correct behavior of _.result in docs
  • Loading branch information
jridgewell committed Apr 28, 2015
1 parent 477d984 commit 9244d61
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 @@ -1931,8 +1931,8 @@ <h2 id="utility">Utility Functions</h2>
<br />
If the value of the named <b>property</b> is a function then invoke it
with the <b>object</b> as context; otherwise, return it. If a default value
is provided and the property doesn't exist than the default will be returned.
If <tt>defaultValue</tt> is a function its result will be returned.
is provided and the property doesn't exist or is undefined than the default
will be returned. If <tt>defaultValue</tt> is a function its result will be returned.
</p>
<pre>
var object = {cheese: 'crumpets', stuff: function(){ return 'nonsense'; }};
Expand Down

0 comments on commit 9244d61

Please sign in to comment.