Skip to content

Commit

Permalink
reduce return assign?
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 18, 2021
1 parent ab5c377 commit b9d2e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/page/utils.js
Expand Up @@ -30,7 +30,7 @@ export const escapeHTML = (str) => {

export const escapeHtmlTag = (strings, ...values) => {
values = values.map((s) => escapeHTML(s));
return strings.reduce((str, val, i) => (str += val + (values[i] || '')), '');
return strings.reduce((str, val, i) => str + val + (values[i] || ''), '');
};

export const readFileAsText = (file) => {
Expand Down

0 comments on commit b9d2e2e

Please sign in to comment.