mirror of https://github.com/zulip/zulip.git
js: Convert _.flatten(a, true) to [].concat(...a).
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
62ad436c64
commit
bafdf5229a
|
@ -45,7 +45,7 @@ exports.get_group_typists = function (group) {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.get_all_typists = function () {
|
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 = util.sorted_ids(typists);
|
||||||
typists = _.uniq(typists, true);
|
typists = _.uniq(typists, true);
|
||||||
return typists;
|
return typists;
|
||||||
|
|
Loading…
Reference in New Issue