Skip to content

Commit 6a6d255

Browse files
committed
adjusted the function name
1 parent df82c4f commit 6a6d255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sprint-2/implement/lookup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// the keys of the object should be the first element of each inner array (country code)
55
// the values of the object should be the second element of each inner array (currency code)
66

7-
function Lookup(countryCurrencyPairs) {
7+
function createLookup(countryCurrencyPairs) {
88
// check if the argument is an array of arrays
99
if (
1010
!Array.isArray(countryCurrencyPairs) ||
@@ -21,4 +21,4 @@ function Lookup(countryCurrencyPairs) {
2121
return Object.fromEntries(countryCurrencyPairs);
2222
}
2323

24-
module.exports = Lookup;
24+
module.exports = createLookup;

0 commit comments

Comments
 (0)