js: Convert _.pluck(a, "key") to item => item.key.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-02-09 03:39:08 +00:00
committed by Tim Abbott
parent fb087c317b
commit 71dd495214
15 changed files with 25 additions and 25 deletions

View File

@@ -42,7 +42,7 @@ MessageListData.prototype = {
if (this._selected_id === -1) {
return;
}
const ids = _.pluck(this._items, 'id');
const ids = this._items.map(message => message.id);
const i = ids.indexOf(this._selected_id);
if (i === -1) {