Skip to content

Commit d517bca

Browse files
committed
improve docs for angular.Object.copy
1 parent e5419db commit d517bca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Angular.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,8 @@ function isLeafNode (node) {
547547
*
548548
* @param {*} source The source to be used to make a copy.
549549
* Can be any type including primitives, `null` and `undefined`.
550-
* @param {(Object|Array)=} destination Optional destination into which the source is copied.
550+
* @param {(Object|Array)=} destination Optional destination into which the source is copied. If
551+
* provided, must be of the same type as `source`.
551552
* @returns {*} The copy or updated `destination` if `destination` was specified.
552553
*
553554
* @example

0 commit comments

Comments
 (0)