mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Bump to v4.6.0.
This commit is contained in:
@@ -8,8 +8,7 @@ define(['./_addMapEntry', './_arrayReduce', './_mapToArray'], function(addMapEnt
|
||||
* @returns {Object} Returns the cloned map.
|
||||
*/
|
||||
function cloneMap(map) {
|
||||
var Ctor = map.constructor;
|
||||
return arrayReduce(mapToArray(map), addMapEntry, new Ctor);
|
||||
return arrayReduce(mapToArray(map), addMapEntry, new map.constructor);
|
||||
}
|
||||
|
||||
return cloneMap;
|
||||
|
||||
Reference in New Issue
Block a user