Skip to content

Commit 750067f

Browse files
dwellejdalton
authored andcommitted
tweak _.clone/_.cloneDeep docs (lodash#4239)
1 parent c541e4c commit 750067f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

clone.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ const CLONE_SYMBOLS_FLAG = 4
1111
* and supports cloning arrays, array buffers, booleans, date objects, maps,
1212
* numbers, `Object` objects, regexes, sets, strings, symbols, and typed
1313
* arrays. The own enumerable properties of `arguments` objects are cloned
14-
* as plain objects. An empty object is returned for uncloneable values such
15-
* as error objects, functions, DOM nodes, and WeakMaps.
14+
* as plain objects. Object inheritance is preserved. An empty object is
15+
* returned for uncloneable values such as error objects, functions, DOM nodes,
16+
* and WeakMaps.
1617
*
1718
* @since 0.1.0
1819
* @category Lang

cloneDeep.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const CLONE_SYMBOLS_FLAG = 4
66

77
/**
88
* This method is like `clone` except that it recursively clones `value`.
9+
* Object inheritance is preserved.
910
*
1011
* @since 1.0.0
1112
* @category Lang

0 commit comments

Comments
 (0)