Skip to content

Commit dcdcb33

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

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)