From bafdf5229ab9ad1cd2e4cb1a6289ff9dc95b8ceb Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 8 Feb 2020 21:07:48 -0800 Subject: [PATCH] js: Convert _.flatten(a, true) to [].concat(...a). Signed-off-by: Anders Kaseorg --- static/js/typing_data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/typing_data.js b/static/js/typing_data.js index 3758a48863..67bcb8d481 100644 --- a/static/js/typing_data.js +++ b/static/js/typing_data.js @@ -45,7 +45,7 @@ exports.get_group_typists = function (group) { }; exports.get_all_typists = function () { - let typists = _.flatten(Array.from(typist_dct.values()), true); + let typists = [].concat(...Array.from(typist_dct.values())); typists = util.sorted_ids(typists); typists = _.uniq(typists, true); return typists;