mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Bump to v4.16.5.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
define(['./_baseClone'], function(baseClone) {
|
||||
|
||||
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
||||
var undefined;
|
||||
|
||||
/**
|
||||
* This method is like `_.clone` except that it accepts `customizer` which
|
||||
* is invoked to produce the cloned value. If `customizer` returns `undefined`,
|
||||
@@ -32,6 +35,7 @@ define(['./_baseClone'], function(baseClone) {
|
||||
* // => 0
|
||||
*/
|
||||
function cloneWith(value, customizer) {
|
||||
customizer = typeof customizer == 'function' ? customizer : undefined;
|
||||
return baseClone(value, false, true, customizer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user