function findOdd(A) {
let result = {};
A.forEach(function(item){
if (result[item] != undefined)
++result[item];
else
result[item] = 1;
});
if (Object.keys(result).length<2) {
return res = +Object.keys(result);
} else {
res = Object.values(result).filter((item)=>item%2 !==0);
(function(object, value) {
Key = Object.keys(result).find(key => result[key] === this.res[0]);
})();
return +Key;
}
}