Skip to content

Commit 877aee2

Browse files
committed
refactor: remove unused variable
1 parent afd1b11 commit 877aee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/word-utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ export function expandWordsToAcronym(words) {
3838
const result = [];
3939
// In American Broadcast Company -> ["C", "BC", "ABC", "IABC"]
4040
const reversedWords = words.slice().reverse();
41-
reversedWords.reduce((acronym, word, i) => {
41+
reversedWords.reduce((acronym, word) => {
4242
acronym.unshift(word.charAt(0));
4343
result.push(acronym.join(""));
4444
return acronym;
4545
}, []);
4646

4747
// In American Broadcast Company -> ["I", "IA", "IAB", "IABC"]
48-
words.reduce((acronym, word, i) => {
48+
words.reduce((acronym, word) => {
4949
acronym.push(word.charAt(0));
5050
result.push(acronym.join(""));
5151
return acronym;

0 commit comments

Comments
 (0)