prefer forEach to for
This commit is contained in:
parent
3b65560818
commit
afd8b6fb90
|
@ -49,8 +49,8 @@ var types = exports.DNS_TYPES = {
|
|||
};
|
||||
|
||||
// and in reverse
|
||||
for (var key in types) {
|
||||
Object.keys(types).forEach(function (key) {
|
||||
types[types[key]] = key;
|
||||
}
|
||||
});
|
||||
|
||||
}('undefined' !== typeof window ? window : exports));
|
||||
|
|
Loading…
Reference in New Issue