Underscore and lodash already does pretty much of what you will ever want. I'd say keep the core small and use your _ for whatever's extra util you need.
FWIW there is also https://github.com/chakrit/node-uneval so `eval(uneval(o))` might work for you (also handles functions). Of course, all the caveats of eval/evil applies. On Wednesday, May 1, 2013 11:37:54 PM UTC+7, Ilya Shaisultanov wrote: > > 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 nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com 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 nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.