{"id":20551583,"url":"https://github.com/clarketm/deepclone","last_synced_at":"2025-04-14T11:30:39.178Z","repository":{"id":57102376,"uuid":"101454110","full_name":"clarketm/DeepClone","owner":"clarketm","description":" Light-weight deep clone implementation for JavaScript.","archived":false,"fork":false,"pushed_at":"2018-10-26T07:45:28.000Z","size":621,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T00:44:02.658Z","etag":null,"topics":["clone","deep-clone","javascript"],"latest_commit_sha":null,"homepage":"https://www.travismclarke.com/deepclone/global.html#DeepClone","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clarketm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-26T01:28:33.000Z","updated_at":"2018-12-13T07:10:28.000Z","dependencies_parsed_at":"2022-08-20T18:40:32.420Z","dependency_job_id":null,"html_url":"https://github.com/clarketm/DeepClone","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2FDeepClone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2FDeepClone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2FDeepClone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clarketm%2FDeepClone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clarketm","download_url":"https://codeload.github.com/clarketm/DeepClone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248871641,"owners_count":21175265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clone","deep-clone","javascript"],"created_at":"2024-11-16T02:32:18.593Z","updated_at":"2025-04-14T11:30:39.155Z","avatar_url":"https://github.com/clarketm.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [DeepClone](https://www.travismclarke.com/deepclone/global.html#DeepClone)\n\nLight-weight deep clone implementation for JavaScript.\n\n[![NPM release](https://img.shields.io/npm/v/@clarketm/deepclone.svg)](https://www.npmjs.com/package/@clarketm/deepclone)\n[![Build Status](https://circleci.com/gh/clarketm/DeepClone.svg?style=shield)](https://circleci.com/gh/clarketm/deepclone)\n\n\u003e ℹ️ For a standalone **Object** type with this deep clone implementation, check out the [super](https://github.com/clarketm/super) repository: [super/object](https://github.com/clarketm/super/tree/master/packages/Object#readme)\n\n## Installation\n```bash\n$ npm install @clarketm/deepclone\n```\n\n## Modules\n\n\u003cdl\u003e\n\u003cdt\u003e\u003ca href=\"#module_DeepClone\"\u003eDeepClone\u003c/a\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003c/dl\u003e\n\n## Functions\n\n\u003cdl\u003e\n\u003cdt\u003e\u003ca href=\"#exp_module_DeepClone--DeepClone\"\u003eDeepClone(obj, [config])\u003c/a\u003e ⇒ \u003ccode\u003eobject\u003c/code\u003e ⏏\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003c/dl\u003e\n\n## Typedefs\n\n\u003cdl\u003e\n\u003cdt\u003e\u003ca href=\"#Config\"\u003eConfig\u003c/a\u003e : \u003ccode\u003eobject\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003c/dl\u003e\n\n\u003ca name=\"module_DeepClone\"\u003e\u003c/a\u003e\n\n## DeepClone\n\u003ca name=\"exp_module_DeepClone--DeepClone\"\u003e\u003c/a\u003e\n\n### DeepClone(obj, [config]) ⇒ \u003ccode\u003eobject\u003c/code\u003e ⏏\n**Kind**: global method of [\u003ccode\u003eDeepClone\u003c/code\u003e](#module_DeepClone)  \n**Returns**: \u003ccode\u003eobject\u003c/code\u003e - cloned object  \n\n| Param | Type | Default |\n| --- | --- | --- |\n| obj | \u003ccode\u003eobject\u003c/code\u003e |  | \n| [config] | [\u003ccode\u003eConfig\u003c/code\u003e](#Config) | \u003ccode\u003e{}\u003c/code\u003e | \n\n**Example**  \n```js\nconst clone = DeepClone({ key1: [\"1\", 1, true, (a, b) =\u003e a+b], [Symbol(\"key2\")]: {s: \"s\"} });\n\nconsole.log(clone);\n// { key1: [\"1\", 1, true, (a, b) =\u003e a+b], Symbol(\"key2\"): {s: \"s\"} }\n```\n\u003ca name=\"Config\"\u003e\u003c/a\u003e\n\n## Config : \u003ccode\u003eobject\u003c/code\u003e\n**Kind**: global typedef  \n**Properties**\n\n| Name | Type | Default |\n| --- | --- | --- |\n| [includeNonEnumerable] | \u003ccode\u003eboolean\u003c/code\u003e | \u003ccode\u003efalse\u003c/code\u003e | \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarketm%2Fdeepclone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclarketm%2Fdeepclone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclarketm%2Fdeepclone/lists"}