I think a more modern solution could look like this:
subjects.filter(subject => !(['Spanish', 'History'].includes(subject)))