Underscore.js _.find() to native Array.find()

This commit is contained in:
djmaze 2020-07-22 10:43:19 +02:00
parent 2404f6466d
commit 9c0072d626
19 changed files with 55 additions and 79 deletions

View file

@ -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;
}
}