Unseen tickets linear search

Code reviewMedium18 min

Your task

Review this JavaScript function that returns tickets not yet seen, given an array of already-seen ids. Both arrays can be large.