开发者社区> 镜像站> NPM> ah-deep-clone
ah-deep-clone
Creates a deep clone of a map of collected async hooks activities.
Last updated 4 years ago by thlorenz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ah-deep-clone 
SYNC missed versions from official npm registry.

ah-deep-clone build status

Creates a deep clone of a Map of collected async hooks activities.

const deepClone = require('ah-deep-clone')
const copy = deepClone(activities)

Installation

npm install ah-deep-clone

API

deepClone

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

arguments

  • @param {Map.<Number, Object>} activities to be cloned
  • @return {Map.<Number, Object>} cloned activities

License

MIT

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)