Skip to content

Commit

Permalink
chore: use common function instead of arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
lumburr committed Apr 6, 2022
1 parent 7ca348b commit d280929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xss.js
Expand Up @@ -64,7 +64,7 @@ function keysToLowerCase(obj) {
var ret = {};
for (var i in obj) {
if (Array.isArray(obj[i])) {
ret[i.toLowerCase()] = obj[i].map(item => {
ret[i.toLowerCase()] = obj[i].map(function (item) {
return item.toLowerCase();
});
} else {
Expand Down

0 comments on commit d280929

Please sign in to comment.