Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

ah-deep-clone

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

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.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
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

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