mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Bump to v4.6.0.
This commit is contained in:
@@ -10,8 +10,7 @@ import mapToArray from './_mapToArray';
|
||||
* @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);
|
||||
}
|
||||
|
||||
export default cloneMap;
|
||||
|
||||
Reference in New Issue
Block a user