mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
js: Replace [...x] with Array.from(x).
Babel strict generates more code for [...x] than you’d like, while Babel loose mode assumes x is an array. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
437961fba3
commit
de3146c137
@@ -47,7 +47,7 @@ exports.get_group_typists = function (group) {
|
||||
};
|
||||
|
||||
exports.get_all_typists = function () {
|
||||
let typists = _.flatten([...typist_dct.values()], true);
|
||||
let typists = _.flatten(Array.from(typist_dct.values()), true);
|
||||
typists = util.sorted_ids(typists);
|
||||
typists = _.uniq(typists, true);
|
||||
return typists;
|
||||
|
||||
Reference in New Issue
Block a user