How can i convert following function to arrow function? I am using currying here
function mergeString(str){
return function(str1){
if(str1){
return mergeString(str + ' ' + str1);
}
else
{
return str;
}
}
}