Skip to content

Commit

Permalink
fix: remove export of internal function
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoBechtel committed Feb 24, 2022
1 parent 4eb16e1 commit b1e948a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function createHooks<T extends Hooks>() {
* deeply clones arrays and objects
* @returns
*/
export function deepClone<T>(source: T): T {
function deepClone<T>(source: T): T {
if (!source || typeof source !== 'object') return source;
return JSON.parse(JSON.stringify(source));
}

0 comments on commit b1e948a

Please sign in to comment.