mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 19:10:52 +00:00
refactor: enforce strict linting rules, replace forEach with for...of loops, and remove console logging throughout the frontend.
This commit is contained in:
@@ -15,8 +15,8 @@ export const replacePathParams = (
|
||||
params: Record<string, string>,
|
||||
): string => {
|
||||
let result = url;
|
||||
Object.entries(params).forEach(([key, value]) => {
|
||||
for (const [key, value] of Object.entries(params)) {
|
||||
result = result.replace(`:${key}`, value);
|
||||
});
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user