公告
财富商城
积分规则
提问
发文
2020-02-17 06:54发布
Luminary・发光体
How do you shallow-clone an ES6 Map or Set object?
I want to get a new Map or Set that has the same keys and values.
Use the constructor to clone Maps and Sets:
var clonedMap = new Map(originalMap) var clonedSet = new Set(originalSet)
最多设置5个标签!
Use the constructor to clone Maps and Sets: