Tweak _.clone and _.cloneDeep docs. [ci skip]

This commit is contained in:
John-David Dalton
2014-10-14 23:31:18 -07:00
parent c46c700f7c
commit af67dd6610

View File

@@ -6884,9 +6884,10 @@
* cloning is handled by the method instead. The `customizer` is bound to
* `thisArg` and invoked with two argument; (value, index|key).
*
* **Note:** This method is loosely based on the structured clone algorithm. Functions
* and DOM nodes are **not** cloned. The enumerable properties of `arguments` objects and
* objects created by constructors other than `Object` are cloned to plain `Object` objects.
* **Note:** This method is loosely based on the structured clone algorithm.
* The enumerable properties of `arguments` objects and objects created by
* constructors other than `Object` are cloned to plain `Object` objects. An
* empty object is returned for functions, DOM nodes, Maps, Sets, and WeakMaps.
* See the [HTML5 specification](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm)
* for more details.
*
@@ -6940,9 +6941,10 @@
* is handled by the method instead. The `customizer` is bound to `thisArg`
* and invoked with two argument; (value, index|key).
*
* **Note:** This method is loosely based on the structured clone algorithm. Functions
* and DOM nodes are **not** cloned. The enumerable properties of `arguments` objects and
* objects created by constructors other than `Object` are cloned to plain `Object` objects.
* **Note:** This method is loosely based on the structured clone algorithm.
* The enumerable properties of `arguments` objects and objects created by
* constructors other than `Object` are cloned to plain `Object` objects. An
* empty object is returned for functions, DOM nodes, Maps, Sets, and WeakMaps.
* See the [HTML5 specification](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm)
* for more details.
*