Let's say I have two arrays:
{First: [One, Two, Three], Second: [One, Two, Three], Third: [One, Two, Three]}
[First, Third]
Now I need to remove every key in first array that is not in second array. So - with those two in example - I should be left with:
{First: [One, Two, Three], Third: [One, Two, Three]}
I tried to use $.grep for that, but I can't figure out how to use array as a filter. Help needed! :)