Skip to content

Commit 3fd3c6c

Browse files
committed
refactor(constants): refactor keyMirror to use arrow function
1 parent 276efbb commit 3fd3c6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use strict';
22

3-
function keyMirror(arr) {
3+
const keyMirror = (arr) => {
44
const tmp = {};
55
for (const value of arr) {
66
tmp[value] = value;
77
}
88
return tmp;
9-
}
9+
};
1010

1111
exports.BASE_API_URL = 'https://discord.com/api';
1212

0 commit comments

Comments
 (0)