function shit(name,value){
return typeof name=='string'?{name:value}:name;
};
alert(shit('name','argb').name);
alert(shit(['fuck','you']));
return typeof name=='string'?{name:value}:name;
};
alert(shit('name','argb').name);
alert(shit(['fuck','you']));