here the src code
let mod_src_0 = "str1";
let mod_src_1 = "str2";
let mod_src_array = [mod_src_0,mod_src_1];
let mod_src_export = [];
 let mod_obj = function(){
    let temp = {};
    for(let mod in mod_src_array){
        temp.id = mod_src_array[mod];
        mod_src_export.push(temp);
    }
    console.log(mod_src_export)
}
mod_obj()
and the result is [ { id: 'str2' }, { id: 'str2' } ] instead of [ { id: 'str1' }, { id: 'str2' } ]
why is this happening? does it have anything to do with the javascript array.push function?
