From 47cad9a73265359c182191f9146c5fa22b6846f9 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Fri, 21 Sep 2018 09:22:50 +0300 Subject: [Minor] Use .forEach instead of .map as we only need to iterate --- interface/js/app/history.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'interface') diff --git a/interface/js/app/history.js b/interface/js/app/history.js index 265894188..68e66924e 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -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]; -- cgit v1.2.3