Closed melvincarvalho closed 1 year ago
Issue Description: The current implementation of the getQueryStringValue function can be improved by adopting a more modern syntax using ES6 features and arrow functions. This refactoring aims to make the code more concise and easier to read.
getQueryStringValue
Proposed Changes:
const getQueryStringValue = key => { const queryParams = new URLSearchParams(window.location.search.substring(1)); return queryParams.get(key); };
Benefits:
Issue Description: The current implementation of the
getQueryStringValue
function can be improved by adopting a more modern syntax using ES6 features and arrow functions. This refactoring aims to make the code more concise and easier to read.Proposed Changes:
Benefits: