Update formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2022-01-30 12:03:45 +02:00
parent 8b3ee1c65b
commit 3596467b4b
4 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ lastUpdated: 2020-11-03T22:11:18+02:00
Generates an object from the given query string or URL.
- Use `String.prototype.split()` to get the params from the given `url`.
- Use `new URLSearchParams()` to create an appropriate object and convert it to an array of key-value pairs using the spread operator (`...`).
- Use the `URLSearchParams` constructor to create an appropriate object and convert it to an array of key-value pairs using the spread operator (`...`).
- Use `Array.prototype.reduce()` to convert the array of key-value pairs into an object.
```js