I have two arrays that contain a list of "message" objects. Each message object has a property 'receivedTime'.
I can sort the two arrays by 'receivedTime' so that newest messages are first.
Now, using underscorejs (if applicable)...is there a way I can pop off the difference in the two arrays? The newer array will have newer messages than the original list.
I only want new messages that are not in the original array.
For some context, I can only get all messages from the API. so I need to keep doing that in a timer, and add any new messages to the table on the page (this part I can do, I just need the difference in the list from one call to the next).