js: Convert _.flatten(a, true) to [].concat(...a).

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-02-08 21:07:48 -08:00 committed by Tim Abbott
parent 62ad436c64
commit bafdf5229a
1 changed files with 1 additions and 1 deletions

View File

@ -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;