js: Convert _.values to Object.values.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-02-08 19:59:25 -08:00
committed by Tim Abbott
parent 7ca52f1e80
commit 9f07cf6b0e

View File

@@ -299,7 +299,7 @@ exports.launch = function () {
draft.id = id; draft.id = id;
} }
const unsorted_raw_drafts = _.values(data); const unsorted_raw_drafts = Object.values(data);
const sorted_raw_drafts = unsorted_raw_drafts.sort(function (draft_a, draft_b) { const sorted_raw_drafts = unsorted_raw_drafts.sort(function (draft_a, draft_b) {
return draft_b.updatedAt - draft_a.updatedAt; return draft_b.updatedAt - draft_a.updatedAt;