I keep a list of names in a file named Ignore.json
[
"George",
"Carl"
]
The filename is ignore.json
Within my program, I load the contents of the file into a variable called ignore
var ignore;
ignore = require("./Ignore.json");
Now, I need to check if an element from an array is not included in that list and output the corresponding code.
I am familiar with how to verify if an element exists in an array using:
for (list in lists) {
if(!(lists[list].to.toLowerCase() in ignore)){
If I wish to ensure it is not "included" in the list, what is the opposite of 'in' in JavaScript?