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

Commit b9edb41

Browse files
committed
docs(angular.copy): add note about destination and source compatibility
Closes #15444 Closes #15462
1 parent 7ca6543 commit b9edb41

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Angular.js

+5
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,11 @@ function arrayRemove(array, value) {
798798
* and on `destination`) will be ignored.
799799
* </div>
800800
*
801+
* <div class="alert alert-warning">
802+
* `angular.copy` does not check if destination and source are of the same type. It's the
803+
* developers responsibility to make sure they are compatible.
804+
* </div>
805+
*
801806
* @param {*} source The source that will be used to make a copy. Can be any type, including
802807
* primitives, `null`, and `undefined`.
803808
* @param {(Object|Array)=} destination Destination into which the source is copied. If provided,

0 commit comments

Comments
 (0)