Commit Graph

2 Commits

Author SHA1 Message Date
82f5a478cc Update shallow-clone-object.md 2017-12-14 23:27:27 +02:00
28bc2bef7c Create shallow-clone-object.md
We need a deep clone too but that's a different animal.

`JSON.parse(JSON.stringify(obj))` is not very good because it strips functions, etc.
2017-12-15 08:17:21 +11:00