I want to filter a list of objects using underscore based on their primary key being included in a specific array of primary keys.
list = [object{pk: 1}, object{pk: 2}, object{pk: 3}]
primary_key_list = [1,2]
The desired outcome is to return [object{pk:1}, object{pk:2}]
Struggling to come up with a concise one-liner that can compare object primary keys to a given list.