Skip to content
This repository has been archived by the owner on Aug 10, 2020. It is now read-only.

Deepify #6

Closed
wants to merge 2 commits into from
Closed

Deepify #6

wants to merge 2 commits into from

Conversation

sricc
Copy link

@sricc sricc commented Jan 25, 2013

Thought it would be cool if xtend allowed for deep extensions. I also updated the readme with the new example and added test using mocha and chai. Hope you like it, please let me know if you see any issues.

-Steve

- simply sets the value to the array.. for now
@Raynos
Copy link
Owner

Raynos commented Jan 25, 2013

The deep algorithm is far too naive. I actually think deep copying is out of scope for this module.

There are other ways modules that do deep copies.

@Raynos Raynos closed this Jan 25, 2013
@sricc
Copy link
Author

sricc commented Jan 25, 2013

Naive or not, it wasn't meant to be overly complex. Seems to work pretty well based on tests. If it's out of scope, then no worries..

@Raynos
Copy link
Owner

Raynos commented Jan 25, 2013

@sricc Consider copy instead for this purpose.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants