Achieving this would vastly simplify my writing template, but again my JS is too limited. Sorry if the question is too complex (or too easy!).
Let's say I have an object with arrays as values, like this:
s.a.aa = ["red", "blue", "green"]
s.a.bb = ["white", "black", "YES"]
s.a.cc = ...
What I need to do is removing "YES" from s.a. But I don't know where it is. It is somewhere within the arrays that populate s.a, but I don't know in which specific key I must search. (Note: all values are unique, as in the examnple.)
So, how would you go about it? Is there a simple way?
I've tried the most logical solution to this (keeping track of where the thing is when I need it) but I've failed with error messages that I can't even begin to understand.