Write a function named diffReactions
that receives 2 parameters:
yesterdayReactions
todayReactions
Both parameters have the same structure:
like
, dislike
, laugh
, cry
.The function should return an Array of strings, describing what happened between yesterday and today. The strings should be in the following format:
<user_id> reacted with <reaction>
if this user added a new reaction today<user_id> removed their <reaction>
if this user reacted yesterday but today removed that reactionThe order of the items in the returned Array is not important.
yesterdayReactions
=todayReactions
=