mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Update doc examples to ES2015.
This commit is contained in:
4
clone.js
4
clone.js
@@ -21,9 +21,9 @@ const CLONE_SYMBOLS_FLAG = 4;
|
||||
* @see cloneDeep
|
||||
* @example
|
||||
*
|
||||
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
||||
* const objects = [{ 'a': 1 }, { 'b': 2 }];
|
||||
*
|
||||
* var shallow = clone(objects);
|
||||
* const shallow = clone(objects);
|
||||
* console.log(shallow[0] === objects[0]);
|
||||
* // => true
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user