Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
const keys
in pathToRegexp
example
`pathToRegexp` does not create a new array and it couldn't even work if it did because the variable binding would be lost. So this can be `const` and it does also match the module's docs: https://github.com/pillarjs/path-to-regexp#path-to-regexp-1
- Loading branch information