mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Bump to v4.17.0.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import baseClone from './_baseClone.js';
|
||||
|
||||
/** Used to compose bitmasks for cloning. */
|
||||
var CLONE_SYMBOLS_FLAG = 4;
|
||||
|
||||
/**
|
||||
* This method is like `_.clone` except that it accepts `customizer` which
|
||||
* is invoked to produce the cloned value. If `customizer` returns `undefined`,
|
||||
@@ -33,7 +36,7 @@ import baseClone from './_baseClone.js';
|
||||
*/
|
||||
function cloneWith(value, customizer) {
|
||||
customizer = typeof customizer == 'function' ? customizer : undefined;
|
||||
return baseClone(value, false, true, customizer);
|
||||
return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);
|
||||
}
|
||||
|
||||
export default cloneWith;
|
||||
|
||||
Reference in New Issue
Block a user