mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Bump to v4.17.0.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import baseClone from './_baseClone.js';
|
||||
import baseIteratee from './_baseIteratee.js';
|
||||
|
||||
/** Used to compose bitmasks for cloning. */
|
||||
var CLONE_DEEP_FLAG = 1;
|
||||
|
||||
/**
|
||||
* Creates a function that invokes `func` with the arguments of the created
|
||||
* function. If `func` is a property name, the created function returns the
|
||||
@@ -44,7 +47,7 @@ import baseIteratee from './_baseIteratee.js';
|
||||
* // => ['def']
|
||||
*/
|
||||
function iteratee(func) {
|
||||
return baseIteratee(typeof func == 'function' ? func : baseClone(func, true));
|
||||
return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
|
||||
}
|
||||
|
||||
export default iteratee;
|
||||
|
||||
Reference in New Issue
Block a user