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

Commit

Permalink
docs(angular.copy): add note about destination and source compatibility
Browse files Browse the repository at this point in the history
Closes #15444
Closes #15462
  • Loading branch information
Narretz committed Jan 21, 2019
1 parent 7ca6543 commit b9edb41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,11 @@ function arrayRemove(array, value) {
* and on `destination`) will be ignored.
* </div>
*
* <div class="alert alert-warning">
* `angular.copy` does not check if destination and source are of the same type. It's the
* developers responsibility to make sure they are compatible.
* </div>
*
* @param {*} source The source that will be used to make a copy. Can be any type, including
* primitives, `null`, and `undefined`.
* @param {(Object|Array)=} destination Destination into which the source is copied. If provided,
Expand Down

0 comments on commit b9edb41

Please sign in to comment.