Creates a deep clone of a Map of collected async hooks activities.
const deepClone = require('ah-deep-clone')
const copy = deepClone(activities)
npm install ah-deep-clone
Clones the activities passed to it.
Any modifications applied to the original won't be visible in the copy. This includes additions/removals to the original Map
-
@param {Map.<Number, Object>}
activities to be cloned -
@return {Map.<Number, Object>}
cloned activities
MIT