In my dictionary, I have two sets of identical array values for different keys. My query is: How can I determine which keys have the same value based on inputting just one value? I want to retrieve all keys that share the same values as an output. This is important for my project where I can only use either sharp or flat, not both, in detecting a note.
var dictionary = {
"Cmaj7": ["C","E","G","B"] , //majors
"C#maj7": ["C#","F","G#","C"],
"Dbmaj7":["C#","F","G#","C"]}