Deep Clone
A single method library used for cloning any sort of data structure in javascript!
Usage
// Importconst clone = ; let objectArray = a: 0 b: 2 a: 3 b: 5; let clonedObjectArray = ; objectArray0a = 6;// => [{ a: 6, b: 2}, { a: 3, b: 5}]; console;// => [{ a: 0, b: 2}, { a: 3, b: 5}]
Contributing
# Clone the project locallygit clone git@github.com:joshghent/deepClone.git deepClone# Change directorycd deepClone# Install dependanciesnpm 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!