Why not add a way to copy objects, for example like 
SugarJS<https://github.com/andrewplummer/Sugar/blob/master/lib/object.js#L313>
 does?

Util already has `inherits` helper and creating object copies is something 
that's not available natively and for newcomers there's a lot of gotchas, 
IMO, e.g. when someone tries to clone an object with nested properties and 
does a shallow clone, ending up with refs instead of copies.

Having this in util would save people time and it'd be code that's reviewed 
by node maintainers (=> trustworthy).

Just my 2 cents.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to