We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df82c4f commit 6a6d255Copy full SHA for 6a6d255
Sprint-2/implement/lookup.js
@@ -4,7 +4,7 @@
4
// the keys of the object should be the first element of each inner array (country code)
5
// the values of the object should be the second element of each inner array (currency code)
6
7
-function Lookup(countryCurrencyPairs) {
+function createLookup(countryCurrencyPairs) {
8
// check if the argument is an array of arrays
9
if (
10
!Array.isArray(countryCurrencyPairs) ||
@@ -21,4 +21,4 @@ function Lookup(countryCurrencyPairs) {
21
return Object.fromEntries(countryCurrencyPairs);
22
}
23
24
-module.exports = Lookup;
+module.exports = createLookup;
0 commit comments