mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
-1…*.indexOf() to native .includes()
This commit is contained in:
parent
eb15c6e45f
commit
961fa305c9
8 changed files with 19 additions and 19 deletions
|
|
@ -73,7 +73,7 @@ class EmailModel {
|
|||
* @returns {boolean}
|
||||
*/
|
||||
search(query) {
|
||||
return -1 < (this.name + ' ' + this.email).toLowerCase().indexOf(query.toLowerCase());
|
||||
return (this.name + ' ' + this.email).toLowerCase().includes(query.toLowerCase());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue