I have a big array with some of the elements are arrays.
Some of the elements and sub-elements are , Let’s say, “forbbidden names”.
Now, if I input a name that is one of the forbbidden names, I want to make it invalid.
My question is– how to get an array of “forbbidden names”?
you are a bit unclear, I assume you want to extract the forbidden names and check the input against it.