You are not recognized as the original poster of this topic.
if(altCode in object){
if(typeof object[altCode]==="string"){
object[altCode]=[object[altCode],unicode];
}else{ //is an array…
object[altCode].push(unicode);
}
}else{
object[altCode]=unicode;
}