Socket
Socket
Sign inDemoInstall

clonedeep

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    clonedeep

Deep copy library for any data structure


Version published
Weekly downloads
4.6K
decreased by-18.27%
Maintainers
1
Install size
7.13 kB
Created
Weekly downloads
 

Readme

Source

Deep Clone Build Status

A single method library used for cloning any sort of data structure in javascript!

NPM

Usage

// Import
const clone = require('deepClone');

let objectArray = [{ a: 0, b: 2}, { a: 3, b: 5}];

let clonedObjectArray = clone(objectArray);

objectArray[0][a] = 6;
// => [{ a: 6, b: 2}, { a: 3, b: 5}];

console.log(clonedObjectArray);
// => [{ a: 0, b: 2}, { a: 3, b: 5}]

Contributing

# Clone the project locally 
git clone git@github.com:joshghent/deepClone.git deepClone

# Change directory
cd deepClone

# Install dependancies
npm install

# Make your changes + add a test for the new feature or bug you found!
# then...
git add -A && git commit -m "Added an awwwwesome feature." && git push origin master

Finally submit a pull request and grab a cup of tea whilst pondering how kickass you feel to be part of the open source community!

Keywords

FAQs

Last updated on 30 Dec 2016

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