From 750067f42d3aa5f927604ece2c6df0ff2b2e9d72 Mon Sep 17 00:00:00 2001 From: David Luzar Date: Mon, 18 Mar 2019 08:04:04 +0100 Subject: [PATCH] tweak _.clone/_.cloneDeep docs (#4239) --- clone.js | 5 +++-- cloneDeep.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/clone.js b/clone.js index b4fdc8343..97d084f0d 100644 --- a/clone.js +++ b/clone.js @@ -11,8 +11,9 @@ const CLONE_SYMBOLS_FLAG = 4 * and supports cloning arrays, array buffers, booleans, date objects, maps, * numbers, `Object` objects, regexes, sets, strings, symbols, and typed * arrays. The own enumerable properties of `arguments` objects are cloned - * as plain objects. An empty object is returned for uncloneable values such - * as error objects, functions, DOM nodes, and WeakMaps. + * as plain objects. Object inheritance is preserved. An empty object is + * returned for uncloneable values such as error objects, functions, DOM nodes, + * and WeakMaps. * * @since 0.1.0 * @category Lang diff --git a/cloneDeep.js b/cloneDeep.js index fad5ab0d0..390e945fb 100644 --- a/cloneDeep.js +++ b/cloneDeep.js @@ -6,6 +6,7 @@ const CLONE_SYMBOLS_FLAG = 4 /** * This method is like `clone` except that it recursively clones `value`. + * Object inheritance is preserved. * * @since 1.0.0 * @category Lang