js: Convert _.chain to array methods.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-02-26 00:27:17 -08:00
committed by Tim Abbott
parent 1fd4762063
commit aa7df21265
3 changed files with 13 additions and 13 deletions

View File

@@ -386,10 +386,9 @@ class Filter {
}
operands(operator) {
return _.chain(this._operators)
return this._operators
.filter((elem) => !elem.negated && elem.operator === operator)
.map((elem) => elem.operand)
.value();
.map((elem) => elem.operand);
}
has_negated_operand(operator, operand) {