I am struggling with deep copies of objects in nodeJS. my own extend is crap. underscore\'s extend is flat. there are rather simple extend variants here on stackexchange, bu
It's already been ported. node-extend
Note the project doesn't have tests and doesn't have much popularity, so use at your own risk.
As mentioned you probably don't need deep copies. Try to change your data structures so you only need shallow copies.
I wrote a smaller module instead, recommend you use xtend. It's not got an implementation containing jQuery baggage nor does it have bugs like node-extend does.