From af67dd661056fb9f0660680367a0af5364a7aa77 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 14 Oct 2014 23:31:18 -0700 Subject: [PATCH] Tweak `_.clone` and `_.cloneDeep` docs. [ci skip] --- lodash.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lodash.js b/lodash.js index df9e4f908..9a8ad4f2e 100644 --- a/lodash.js +++ b/lodash.js @@ -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. *