Giter VIP home page Giter VIP logo

deepclone's Introduction

Deep Clone Build Status

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

NPM

Greenkeeper badge devDependency Status

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 [email protected]: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!

deepclone's People

Contributors

chrkhl avatar greenkeeper[bot] avatar joshghent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

chrkhl zhbosir yifv

deepclone's Issues

Add types file

Add a types file so we can use this library with typescript. Perhaps port the current code over to typescript and then have tsc generate the types file for us.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.