JavaScript - Array.Search

Javascript provides a Find method, also a toUpperCase method.

Javascript - searching an array for data.

The Array object as a method called toUpperCase()

Sample

1
2
3
4
5
6
7
8
9
10
let checked = [];       // checked files

let topic = todo.pop();
console.log (` Topic=${topic}`);

if (checked.find(topic.toUpperCase())) {
console.log (` Topic was already scanned`);
} else {

}

References