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
});

Readme

Keywords

Package Sidebar

Install

npm i js-cloner

Weekly Downloads

6

Version

1.0.0

License

ISC

Last publish

Collaborators

  • ganeshpl