Socket
Socket
Sign inDemoInstall

ah-deep-clone

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

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.


Version published
Maintainers
1
Install size
5.92 kB
Created

Readme

Source

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

Last updated on 20 Jan 2017

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc