Skip to content

Commit c29460d

Browse files
committed
refactor: use forEach
1 parent 166249a commit c29460d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/history/errors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ function stringifyRoute (to) {
6060
if (typeof to === 'string') return to
6161
if ('path' in to) return to.path
6262
const location = {}
63-
for (const key of propertiesToLog) {
63+
propertiesToLog.forEach(key => {
6464
if (key in to) location[key] = to[key]
65-
}
65+
})
6666
return JSON.stringify(location, null, 2)
6767
}

0 commit comments

Comments
 (0)