Skip to content

Commit

Permalink
⚙hotfix: remove arrow func
Browse files Browse the repository at this point in the history
  • Loading branch information
linda-rian committed Nov 5, 2016
1 parent 32f40a5 commit 78ae6a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"no-param-reassign": [0, {"props": false}],
"vars-on-top": 0,
"func-names": 0,
"no-restricted-syntax": 0
"no-restricted-syntax": 0,
"prefer-arrow-callback": 0,
"prefer-template": 0
}
}
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ var data = require('./banks/index');
var banks = [];
var prefixes = {};

data.forEach((item) => {
data.forEach(function (item) {
banks = banks.concat(item);
});

banks.forEach((bank) => {
bank.code = `${bank.country}-${bank.name}`;
bank.prefixes.forEach((prefix) => {
banks.forEach(function (bank) {
bank.code = bank.country + '-' + bank.name;
bank.prefixes.forEach(function (prefix) {
prefixes[prefix] = bank;
});
});
Expand Down

0 comments on commit 78ae6a4

Please sign in to comment.