Commit e635e339 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch 'Update-jdoc-for-mergeUrlParams' into 'master'

Update jsdoc for mergeUrlParams for sort option

See merge request gitlab-org/gitlab!42668
parents 33e992a2 41e05077
...@@ -73,6 +73,7 @@ export function getParameterValues(sParam, url = window.location) { ...@@ -73,6 +73,7 @@ export function getParameterValues(sParam, url = window.location) {
* @param {String} url * @param {String} url
* @param {Object} options * @param {Object} options
* @param {Boolean} options.spreadArrays - split array values into separate key/value-pairs * @param {Boolean} options.spreadArrays - split array values into separate key/value-pairs
* @param {Boolean} options.sort - alphabetically sort params in the returned url (in asc order, i.e., a-z)
*/ */
export function mergeUrlParams(params, url, options = {}) { export function mergeUrlParams(params, url, options = {}) {
const { spreadArrays = false, sort = false } = options; const { spreadArrays = false, sort = false } = options;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment