mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
Tweak _.clone and _.cloneDeep docs. [ci skip]
This commit is contained in:
14
lodash.js
14
lodash.js
@@ -6884,9 +6884,10 @@
|
|||||||
* cloning is handled by the method instead. The `customizer` is bound to
|
* cloning is handled by the method instead. The `customizer` is bound to
|
||||||
* `thisArg` and invoked with two argument; (value, index|key).
|
* `thisArg` and invoked with two argument; (value, index|key).
|
||||||
*
|
*
|
||||||
* **Note:** This method is loosely based on the structured clone algorithm. Functions
|
* **Note:** This method is loosely based on the structured clone algorithm.
|
||||||
* and DOM nodes are **not** cloned. The enumerable properties of `arguments` objects and
|
* The enumerable properties of `arguments` objects and objects created by
|
||||||
* objects created by constructors other than `Object` are cloned to plain `Object` objects.
|
* 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)
|
* See the [HTML5 specification](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
@@ -6940,9 +6941,10 @@
|
|||||||
* is handled by the method instead. The `customizer` is bound to `thisArg`
|
* is handled by the method instead. The `customizer` is bound to `thisArg`
|
||||||
* and invoked with two argument; (value, index|key).
|
* and invoked with two argument; (value, index|key).
|
||||||
*
|
*
|
||||||
* **Note:** This method is loosely based on the structured clone algorithm. Functions
|
* **Note:** This method is loosely based on the structured clone algorithm.
|
||||||
* and DOM nodes are **not** cloned. The enumerable properties of `arguments` objects and
|
* The enumerable properties of `arguments` objects and objects created by
|
||||||
* objects created by constructors other than `Object` are cloned to plain `Object` objects.
|
* 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)
|
* See the [HTML5 specification](http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm)
|
||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user