* Return the number of parameters query strings. * @param {String} url URL as String * @return {int} Number of Parameters
(url)
| 114 | * @return {int} Number of Parameters |
| 115 | */ |
| 116 | function countFields(url) { |
| 117 | return [...new URL(url).searchParams].length |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Extract the fragments from an url. |