chore: method signatures for parseQueryString method
This commit is contained in:
parent
7f8b49dd1d
commit
2f3c3aeba9
1 changed files with 8 additions and 1 deletions
|
|
@ -30,7 +30,14 @@ const sendPostRequest = async (url, params) => {
|
|||
throw err;
|
||||
}
|
||||
};
|
||||
// Parse a query string into an object
|
||||
|
||||
/**
|
||||
* Parse a query string into an object
|
||||
*
|
||||
* @param {String} string - The query string
|
||||
* @returns {Object}
|
||||
*/
|
||||
|
||||
const parseQueryString = string => {
|
||||
if (string === "") {
|
||||
return {};
|
||||
|
|
|
|||
Loading…
Reference in a new issue