mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
fix: remove for-in loop to prevent errors when Array has additional enumerable properties (#3)
This commit is contained in:
parent
5c745ccec1
commit
59cc613fc2
@ -75,7 +75,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user