Skip to content

Commit

Permalink
add jsonClone.ts + cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniopresto committed Feb 9, 2024
1 parent f1af357 commit d1c6c27
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11,166 deletions.
2 changes: 2 additions & 0 deletions packages/boilerplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"files": [
"package.json",
"out/*",
"tsconfig/*",
"eslintrc.cjs",
"README.md"
]
}
1 change: 1 addition & 0 deletions packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export * from './skipper';
export * from './routeUtils';
export * from './state/miniState';
export * from './ReactLike';
export * from './jsonClone';

// @only-server
export * from './logLevels';
Expand Down
3 changes: 3 additions & 0 deletions packages/utils/src/jsonClone.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function jsonClone<T>(value: T): T {
return JSON.parse(JSON.stringify(value));
}
Loading

0 comments on commit d1c6c27

Please sign in to comment.