Skip to content

Commit

Permalink
Merge pull request #547 from sunny-mwx/patch-1
Browse files Browse the repository at this point in the history
Fix enumerize loop to only check its own properties
  • Loading branch information
faisalman authored Oct 26, 2021
2 parents b4cfe1b + 10c978e commit 157af1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ua-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
},
enumerize = function (arr) {
var enums = {};
for (var i in arr) {
for (var i=0; i<arr.length; i++) {
enums[arr[i].toUpperCase()] = arr[i];
}
return enums;
Expand Down

0 comments on commit 157af1e

Please sign in to comment.