mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
js: Convert _.chain to array methods.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
1fd4762063
commit
aa7df21265
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user