Browse Source

[Minor] Use .forEach instead of .map

as we only need to iterate
tags/1.8.0
Alexander Moisseev 5 years ago
parent
commit
47cad9a732
2 changed files with 2 additions and 3 deletions
  1. 0
    1
      .eslintrc.json
  2. 2
    2
      interface/js/app/history.js

+ 0
- 1
.eslintrc.json View File

@@ -56,7 +56,6 @@


// Temporarily disabled rules
"array-callback-return": "off",
"array-element-newline": "off",
"consistent-this": "off",
"func-style": "off",

+ 2
- 2
interface/js/app/history.js View File

@@ -68,7 +68,7 @@ define(["jquery", "footable", "humanize"],
escape_HTML_array(item[prop]);
break;
case "symbols":
Object.keys(item.symbols).map(function (key) {
Object.keys(item.symbols).forEach(function (key) {
var sym = item.symbols[key];
if (!sym.name) {
sym.name = key;
@@ -156,7 +156,7 @@ define(["jquery", "footable", "humanize"],
}

preprocess_item(item);
Object.keys(item.symbols).map(function (key) {
Object.keys(item.symbols).forEach(function (key) {
var str = null;
var sym = item.symbols[key];


Loading…
Cancel
Save