Skip to content

Commit

Permalink
update addNetwork (lodash removal changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarah Bush committed Mar 24, 2022
1 parent 65d42f3 commit 71cabec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/bitcore-lib/lib/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ function get(arg, keys) {
keys = [keys];
}
for (var index in networks) {
if (keys.some(key => networks[index][key] === arg)) {
if (keys.some(function(key) {
return networks[index][key] === arg;
})) {
return networks[index];
}
}
Expand Down

0 comments on commit 71cabec

Please sign in to comment.