Clones the Map object with a shallow copy method. If you want to clone Map deeply, you can use structuredClone function.
Map
structuredClone
To be cloned.
A new cloned one.
Generated using TypeDoc
Clones the
Mapobject with a shallow copy method. If you want to cloneMapdeeply, you can usestructuredClonefunction.