Skip to content

Commit

Permalink
Merge pull request #51 from woodcoal/patch-1
Browse files Browse the repository at this point in the history
Update clone.js
  • Loading branch information
xuliangzhan committed May 1, 2023
2 parents 491bd04 + c7c6311 commit 5481bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion func/clone.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function copyValue (val, isDeep) {
case "[object Map]": {
var restMap = getCativeCtor(val)
restMap.forEach(function (item, key) {
restMap.set(handleValueClone(item, isDeep))
restMap.set(key, handleValueClone(item, isDeep))
})
return restMap
}
Expand Down

0 comments on commit 5481bd9

Please sign in to comment.