mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Bump to v4.17.0.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
define(['./_baseClone', './_baseIteratee'], function(baseClone, baseIteratee) {
|
||||
|
||||
/** 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
|
||||
@@ -43,7 +46,7 @@ define(['./_baseClone', './_baseIteratee'], function(baseClone, baseIteratee) {
|
||||
* // => ['def']
|
||||
*/
|
||||
function iteratee(func) {
|
||||
return baseIteratee(typeof func == 'function' ? func : baseClone(func, true));
|
||||
return baseIteratee(typeof func == 'function' ? func : baseClone(func, CLONE_DEEP_FLAG));
|
||||
}
|
||||
|
||||
return iteratee;
|
||||
|
||||
Reference in New Issue
Block a user