mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Underscore.js _.find() to native Array.find()
This commit is contained in:
parent
2404f6466d
commit
9c0072d626
19 changed files with 55 additions and 79 deletions
|
|
@ -146,7 +146,7 @@ class FilterModel extends AbstractModel {
|
|||
}
|
||||
|
||||
if (0 < this.conditions().length) {
|
||||
if (_.find(this.conditions(), (cond) => cond && !cond.verify())) {
|
||||
if (this.conditions().find(cond => cond && !cond.verify())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue