Permalink
Browse files

document that _.extend is shallow. Fixes #2579

  • Loading branch information...
1 parent 147498f commit a9432276b90bd23d3022deb89ac1ba6b10ee7495 @akre54 akre54 committed Aug 29, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 index.html
View
3 index.html
@@ -1477,8 +1477,9 @@ <h2 id="objects">Object Functions</h2>
<p id="extend">
<b class="header">extend</b><code>_.extend(destination, *sources)</code>
<br />
- Copy all of the properties <strong>in</strong> the <b>source</b> objects over to the
+ Shallowly copy all of the properties <strong>in</strong> the <b>source</b> objects over to the
<b>destination</b> object, and return the <b>destination</b> object.
+ Any nested objects or arrays will be copied by reference, not duplicated.
It's in-order, so the last source will override properties of the same
name in previous arguments.
</p>

0 comments on commit a943227

Please sign in to comment.