mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Clarify documentation for _.result.
This commit is contained in:
@@ -1313,7 +1313,8 @@ _.escape('Curly, Larry & Moe');
|
||||
<p id="result">
|
||||
<b class="header">result</b><code>_.result(object, property)</code>
|
||||
<br />
|
||||
Returns a value from an object as a property or as a function.
|
||||
If the value of the named property is a function then invoke it.
|
||||
Otherwise, return its value.
|
||||
</p>
|
||||
<pre>
|
||||
var object = {cheese: 'crumpets', stuff: function(){ return 'nonsense'; }};
|
||||
|
||||
Reference in New Issue
Block a user