Skip to content

feat: deep copy method - #495

Open
hazrid93 wants to merge 1 commit into
sodiray:masterfrom
hazrid93:hazrid93/52_384
Open

feat: deep copy method#495
hazrid93 wants to merge 1 commit into
sodiray:masterfrom
hazrid93:hazrid93/52_384

Conversation

@hazrid93

Copy link
Copy Markdown

Closes #384.

Add cloneDeep(obj) that recursively clones nested objects, arrays, Dates, RegExps, Maps and Sets so the result shares no references with the original. Primitives and functions are returned as is. Plain object own enumerable keys and symbols are cloned.

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

@hazrid93 is attempting to deploy a commit to the rayunishinedev's projects Team on Vercel.

A member of the Team first needs to authorize it.

Closes sodiray#384.

Add cloneDeep(obj) that recursively clones nested objects, arrays, Dates, RegExps, Maps and Sets so the result shares no references with the original. Primitives and functions are returned as is. Plain object own enumerable keys and symbols are cloned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

why not provide deep copy method,be like deep copy of array or object?

1 participant