Hey all! Im trying to build a filter that prevents people from using certain words. I have a switch node so that if a word is in the input it won't continue. I thought using the includes function would work for this but it doesn't seem to be doing the job as if i enter a word that i have in my array of banned words, it shows false when it should show true.
I thought using the some function would work but the some looks for letters in words vs entire words.
IE: I type mall, but it wont continue because all is in the word and thats also in the words that are banned.
Whats the best way to do something like this?