Change all snippets from var to const

This commit is contained in:
Jorge Gonzalez
2017-12-12 07:11:37 -05:00
parent 06aa1a7ec9
commit 98279117fa
33 changed files with 35 additions and 35 deletions

View File

@ -5,6 +5,6 @@ Combine all key-value pairs into a single object using `Object.assign()` and the
Pass `location.search` as the argument to apply to the current `url`.
```js
var getUrlParameters = url =>
const getUrlParameters = url =>
Object.assign(...url.match(/([^?=&]+)(=([^&]*))?/g).map(m => {[f,v] = m.split('='); return {[f]:v}}));
```