Consider a scenario where you have an array of objects in users.json:
{"key":"userSubscriptions","value":
[{"channel":"Netflix","user":"Bobby","region":"NA"},
[{"channel":"Netflix","user":"Bobby","region":"EU"},
[{"channel":"Netflix","user":"Jamie","region":"SEA"},
[{"channel":"Prime Video","user":"Bobby","region":"NA"}]}
If we want to filter this data such that the final result will be
console.log(result); // Bobby, your region subscriptions are: Netflix: (NA, EU), Prime Video: (NA)
Your help on achieving this outcome would be greatly appreciated!
UPDATE: I attempted using methods like .filter() and .map(), but unfortunately haven't had success yet.