dict, lazy_set: Return an iterator from values method.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-02-02 23:51:09 -08:00
committed by Tim Abbott
parent 45d3be5449
commit 9e1343ff8a
12 changed files with 33 additions and 29 deletions

View File

@@ -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([...typist_dct.values()], true);
typists = util.sorted_ids(typists);
typists = _.uniq(typists, true);
return typists;