js-cloner

    1.0.0 • Public • Published

    cloner

    a simple cloner for deep cloning all Javascript objects

    var cloner = require('js-cloner');
    
    var numbers = [1, 2, 3];
    var numbersClone = cloner.clone(numbers);
    
    var cloned = cloner.clone({
      'alpahbets': {
        'a':1,
        'b':2,
        'z':26
      },
      numbers: [1, 2, 3],
      self: this
    });
    
    

    Install

    npm i js-cloner

    DownloadsWeekly Downloads

    5

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • avatar