feature/notification-more-options #7
@@ -89,3 +89,10 @@ export function isEuropeanDST( date: Date ) {
|
|||||||
// Return true if within DST period
|
// Return true if within DST period
|
||||||
return date >= start && date < end;
|
return date >= start && date < end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function createQS (params: Record<string, string | number | boolean>): string {
|
||||||
|
const queryString = Object.entries(params)
|
||||||
|
.map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)
|
||||||
|
.join("&");
|
||||||
|
return queryString;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user