🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ah-deep-clone

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

1.0.0
latest
Version published
Maintainers
1
Created

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

FAQs

Package last updated on 20 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts