Write a method that nds all numbers that occur exactly once in the input collection. For example, FindUniqueNumbers(new int[] { 1, 2, 1, 3 }) should return { 2, 3 }.
Example: create a function that takes in an array of numbers and returns only the number that are even after 1 is added to the value
const evenAfter = (arr) => {
let i = 0
let newArr = []
while (i <= arr.length) {
if ((arr[i] + 1) % 2 === 0){
newArr.push(arr[i])
}
i++
}
return newArr
}
console.log(evenAfter([3,6,7,8,9,11]))