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