This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get a query map based on a query string. | |
* | |
* The function will populate a map variable with key value pairs of the parameters. | |
* | |
* If there is more than one of the same key, the function will populate an array in the map with the multiple values within it. | |
* | |
* Forked from {@link https://gist.github.com/MatthewDaniels/388fa1e0c02613f103f00a504ed58c55 MatthewDaniels/parse-query-parameters-into-a-map.js}. | |
* | |
* @param {?string} [query=window.location.search] The query string - the question mark is optional |