mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
merging ratbeard's patch for allowing multiple arguments to be passed to extend, with docs
This commit is contained in:
@@ -748,10 +748,11 @@ _.functions(_);
|
||||
</pre>
|
||||
|
||||
<p id="extend">
|
||||
<b class="header">extend</b><code>_.extend(destination, source)</code>
|
||||
<b class="header">extend</b><code>_.extend(destination, *sources)</code>
|
||||
<br />
|
||||
Copy all of the properties in the <b>source</b> object over to the
|
||||
<b>destination</b> object.
|
||||
Copy all of the properties in the <b>source</b> objects over to the
|
||||
<b>destination</b> object. It's in-order, to the last source will override
|
||||
properties of the same name in previous arguments.
|
||||
</p>
|
||||
<pre>
|
||||
_.extend({name : 'moe'}, {age : 50});
|
||||
|
||||
Reference in New Issue
Block a user