1.0.0 • Published 6 years ago

copyjs v1.0.0

Weekly downloads
3
License
BSD
Repository
github
Last release
6 years ago

copyjs

copyjs

copyjs is for deep copies of javascript objects

var a = {
  val: 15,
  business: 'isGood'
};

var b = copy(a);

#  object a { val: 15, business: 'isGood' }
#  object b { val: 15, business: 'isGood' }

b.val = 8000;
b.business = 'isBetter';

#  object a { val: 15, business: 'isGood' }
#  object b { val: 8000, business: 'isBetter' }

license: BSD

notes: I would have used https://npmjs.org/package/copy but I couldn't find/see their source Ok, that source is linked now https://github.com/evlun/copy and they even support packed arrays and buffers efficiently.

1.0.0

6 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago

0.0.0

11 years ago