Skip to content

Commit

Permalink
refactor: add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca committed May 21, 2023
1 parent a81e356 commit 8f197e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/helpers/cloneDeepJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
*/

export function cloneDeepJson<T>(jsonable: T): T {
// TODO perf: maybe use `structuredClone` instead.
return JSON.parse(JSON.stringify(jsonable));
}

0 comments on commit 8f197e5

Please sign in to comment.