How would you identify the unique integer in an array where each element appears twice?

Free for the first 3 answer contributors

Interview question asked to Frontend Engineers interviewing at Twitch, Deep Silver, HPE and others: How would you identify the unique integer in an array where each element appears twice?.