mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Bump to v4.17.0.
This commit is contained in:
5
clone.js
5
clone.js
@@ -1,5 +1,8 @@
|
||||
import baseClone from './_baseClone.js';
|
||||
|
||||
/** Used to compose bitmasks for cloning. */
|
||||
var CLONE_SYMBOLS_FLAG = 4;
|
||||
|
||||
/**
|
||||
* Creates a shallow clone of `value`.
|
||||
*
|
||||
@@ -27,7 +30,7 @@ import baseClone from './_baseClone.js';
|
||||
* // => true
|
||||
*/
|
||||
function clone(value) {
|
||||
return baseClone(value, false, true);
|
||||
return baseClone(value, CLONE_SYMBOLS_FLAG);
|
||||
}
|
||||
|
||||
export default clone;
|
||||
|
||||
Reference in New Issue
Block a user