Add search param parser

This commit is contained in:
jeffvli
2022-12-11 23:57:14 -08:00
parent 06d78bf0cf
commit 2839b68e5f
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -4,3 +4,4 @@ export * from './set-local-storage-setttings';
export * from './constrain-sidebar-width';
export * from './title-case';
export * from './get-header-color';
export * from './parse-search-params';
@@ -0,0 +1,3 @@
export const parseSearchParams = (searchParams: Record<any, any>) => {
return JSON.parse(JSON.stringify(searchParams));
};