We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a486bc5 commit 97eb4ecCopy full SHA for 97eb4ec
lib/taskbook.js
@@ -140,15 +140,11 @@ class Taskbook {
140
}
141
142
_hasTerms(string, terms) {
143
- let result;
144
-
145
- terms.forEach((term, key, arr) => {
+ for (const term of terms) {
146
if (string.toLocaleLowerCase().indexOf(term.toLocaleLowerCase()) > -1) {
147
- result = (key === arr.length - 1) ? string : '';
+ return string;
148
149
- });
150
151
- return result;
+ }
152
153
154
_filterTask(data) {
0 commit comments