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

Commit d517bca

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Angular.js

+2-1
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)