Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7fa6634

Browse files
wedneyyuripetebacondarwin
authored andcommitted
docs(angular.extend): explanation of deep copy.
It is very common to see many developers confused about it. Closes #9672
1 parent e5c53b3 commit 7fa6634

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Angular.js

+1
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ function setHashKey(obj, h) {
340340
* Extends the destination object `dst` by copying own enumerable properties from the `src` object(s)
341341
* to `dst`. You can specify multiple `src` objects. If you want to preserve original objects, you can do so
342342
* by passing an empty object as the target: `var object = angular.extend({}, object1, object2)`.
343+
* Note: Keep in mind that `angular.extend` does not support recursive merge (deep copy).
343344
*
344345
* @param {Object} dst Destination object.
345346
* @param {...Object} src Source object(s).

0 commit comments

Comments
 (0)