mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
tweak _.clone/_.cloneDeep docs (#4239)
This commit is contained in:
committed by
John-David Dalton
parent
c541e4ccdc
commit
750067f42d
5
clone.js
5
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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user